]> git.proxmox.com Git - qemu.git/commit - qemu-io.c
fix variable type in qemu-io.c
authorJoel Schopp <jschopp@austin.ibm.com>
Wed, 21 Jul 2010 20:05:16 +0000 (15:05 -0500)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 30 Jul 2010 21:05:51 +0000 (23:05 +0200)
commitca1d6ac657ff1cebd689b5d93784402e7ceb52c3
tree44f55f753788a35b480d2e7a00623e57c5d70cd8
parent61bca2942c94bcb1d763dd5fff8cdbd0a05e9ae0
fix variable type in qemu-io.c

The variable len can get a negative return value from cvtnum,
which we check for, but which is impossible with the current
unsigned variable type.  Currently the if(len < 0) check is
pointless.  This patch fixes that.

Signed-off-by: Joel Schopp <jschopp@austin.ibm.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
qemu-io.c