btrfs-progs: Use long type to get thread's return value
authorZhao Lei <zhaolei@cn.fujitsu.com>
Wed, 2 Sep 2015 12:22:30 +0000 (20:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 2 Sep 2015 16:56:54 +0000 (18:56 +0200)
commit8c6d4e6c7cb787d20f99b5c3c591b76e687b9483
tree3373e921c6bbc3fc79a8592643564d0179949a44
parent1593aa711a8578008833d634ce0a04f97dd4a837
btrfs-progs: Use long type to get thread's return value

pthread use void * to save return status, we can use this pointer to
save our return value, but we need to keep the same length.

This patch move to use long type variable to save return value
of our thread, to avoid potential invalid memory access.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
chunk-recover.c