Skip to contentSkip to conversation

Btrfs-progs: fix complie warning in the function filter_by_parent

PATCH New Wang Shilong 1 participant 1 message Feb 25, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 Btrfs-progs: fix complie warning in the function filter_by_parent

From: Wang Shilong <[email protected]>

See the below warning info:
warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

---
 btrfs-list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
btrfs-list.c +1 -1
index d02d620..2eee4f6 100644
@@ -1173,7 +1173,7 @@ static int filter_full_path(struct root_info *ri, u64 data)
 
 static int filter_by_parent(struct root_info *ri, u64 data)
 {
-	return !uuid_compare(ri->puuid, (u8 *)data);
+	return !uuid_compare(ri->puuid, (u8 *)(unsigned long)data);
 }
 
 static btrfs_list_filter_func all_filter_funcs[] = {
Signature · 1 line
1.7.7.6