Btrfs-progs: fix compile warnings in i386 machine
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Tue, 7 May 2013 12:24:40 +0000 (12:24 +0000)
committerChris Mason <chris.mason@fusionio.com>
Fri, 10 May 2013 14:55:22 +0000 (10:55 -0400)
commit0ba706acd85576ebda89058b7260bf12c926ddac
treec5d68acc2fd02612ca117ef960df2dc289d03ee0
parent5e82da1118203d5ab92de3efccc1904b9e24766f
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 <russell@coker.com.au>
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
btrfs-list.c
cmds-restore.c
cmds-subvolume.c