btrfs-progs: task-utils: Fix comparison between pointer and integer
pthread_t is an opaque type, not an integer one. The > 0 makes no sense and compiler throws a warning. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
ed570e2df3
commit
803c916907
|
@ -67,7 +67,7 @@ void task_stop(struct task_info *info)
|
|||
if (!info)
|
||||
return;
|
||||
|
||||
if (info->id > 0) {
|
||||
if (info->id) {
|
||||
pthread_cancel(info->id);
|
||||
pthread_join(info->id, NULL);
|
||||
info->id = 0;
|
||||
|
|
Loading…
Reference in New Issue