path: root/cmds-subvolume.c
diff options
authorWang Shilong <>2013-05-07 12:24:40 +0000
committerChris Mason <>2013-05-10 10:55:22 -0400
commit0ba706acd85576ebda89058b7260bf12c926ddac (patch)
treec5d68acc2fd02612ca117ef960df2dc289d03ee0 /cmds-subvolume.c
parent5e82da1118203d5ab92de3efccc1904b9e24766f (diff)
Btrfs-progs: fix compile warnings in i386 machine
See the warnings below: [CC] btrfs-list.o btrfs-list.c: In function 'filter_by_parent': btrfs-list.c:1183:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] [CC] cmds-subvolume.o cmds-subvolume.c: In function 'cmd_subvol_show': cmds-subvolume.c:917:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] [CC] cmds-restore.o cmds-restore.c: In function 'decompress_lzo': cmds-restore.c:116:10: warning: passing argument 4 of 'lzo1x_decompress_safe' from incompatible pointer type [enabled by default] In file included from cmds-restore.c:31:0: /usr/include/lzo/lzo1x.h:77:1: note: expected 'lzo_uint *' but argument is of type 'size_t *' Reported-by: Russell Coker <> Signed-off-by: Wang Shilong <> Signed-off-by: Chris Mason <>
Diffstat (limited to 'cmds-subvolume.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index e97297a9..ccb47627 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -920,7 +920,7 @@ static int cmd_subvol_show(int argc, char **argv)
filter_set = btrfs_list_alloc_filter_set();
btrfs_list_setup_filter(&filter_set, BTRFS_LIST_FILTER_BY_PARENT,
- (u64)get_ri.uuid);
+ (u64)(unsigned long)get_ri.uuid);
btrfs_list_subvols_print(fd, filter_set, NULL, BTRFS_LIST_LAYOUT_RAW,
1, raw_prefix);