From: aliguori Date: Thu, 15 Jan 2009 21:42:12 +0000 (+0000) Subject: qemu-img: Fix type of getopt return value (Kevin Wolf) X-Git-Tag: xen-3.4.0-rc2~71^2^2~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=40a4539e2041f4a9dd52d269f46926b7ed2b73ff;p=qemu-xen-4.1-testing.git qemu-img: Fix type of getopt return value (Kevin Wolf) getopt doesn't return a char but an int. Signed-off-by: Kevin Wolf Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6331 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/qemu-img.c b/qemu-img.c index 0b59cfda2..555ab5fc4 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -751,8 +751,7 @@ static void img_snapshot(int argc, char **argv) BlockDriverState *bs; QEMUSnapshotInfo sn; char *filename, *snapshot_name = NULL; - char c; - int ret; + int c, ret; int action = 0; qemu_timeval tv;