qemu-nbd: Fix invalid usage of the first argument of errx
commitb6353bea572f8cc0f35fb7dc438ce74c08dda9e7
authorRyota Ozaki <ozaki.ryota@gmail.com>
Sat, 20 Mar 2010 06:23:23 +0000 (20 15:23 +0900)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 27 Mar 2010 13:02:46 +0000 (27 14:02 +0100)
tree5db9f4d97087309165cdc8387a1dcccc21f31aaf
parenta16c174c51e7cd896c701d5d0e8329e610e90ce1
qemu-nbd: Fix invalid usage of the first argument of errx

errx takes the exit status of a process as the first
argument. Passing errno to it is wrong. Instead the
patch lets errx take EXIT_FAILURE.

Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
qemu-nbd.c