]> git.proxmox.com Git - qemu.git/commit
posix-aio-compat: Fix error check
authorKevin Wolf <kwolf@redhat.com>
Wed, 18 Nov 2009 11:15:10 +0000 (12:15 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 21:26:00 +0000 (15:26 -0600)
commit6769da29c7a3caa9de4020db87f495de692cf8e2
treee7284851ee1ecb1c86c6078aca5abf3c8c2864f2
parent7078dead94a24bc4e5819e4a6448bd5738a2d088
posix-aio-compat: Fix error check

Checking for nbytes < 0 is pointless as long as it's a size_t. If we want to
use negative numbers for error codes, we should use signed types.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
posix-aio-compat.c