path: root/check
diff options
authorSu Yanjun <>2018-10-12 15:41:53 +0800
committerDavid Sterba <>2018-10-25 16:11:40 +0200
commit22e47679504de19b3d3256f1d741d5465112fe0a (patch)
tree622a52cd9f9b3f9d6bc89cce90e5dd0e128b7d31 /check
parentb4843d366906cdb5b1198c0206b720ba28ee66f6 (diff)
btrfs-progs: consitfy keys passed to serch functions
When using gcc8 to compile btrfs-progs, it complains as below: ctree.c: In function 'btrfs_search_slot_for_read': ctree.c:1249:45: warning: passing argument 3 of 'btrfs_search_slot' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ret = btrfs_search_slot(NULL, root, key, p, 0, 0); Change btrfs_search_slot prototype with 'const' qualifier for argument 3. Also fix similar problems as above change. Signed-off-by: Su Yanjun <> Signed-off-by: David Sterba <>
Diffstat (limited to 'check')
0 files changed, 0 insertions, 0 deletions