Skip to contentSkip to conversation

[6331] qemu-img: Fix type of getopt return value (Kevin Wolf)

Qemu-devel Anthony Liguori 1 participant 1 message Jan 15, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6331

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6331
Author:   aliguori
Date:     2009-01-15 21:42:12 +0000 (Thu, 15 Jan 2009)

Log Message:
-----------
qemu-img: Fix type of getopt return value (Kevin Wolf)

getopt doesn't return a char but an int.

Modified Paths:
--------------
trunk/qemu-img.c

Modified: trunk/qemu-img.c
===================================================================

qemu-img.c +1 -2
@@ -751,8 +751,7 @@
     BlockDriverState *bs;
     QEMUSnapshotInfo sn;
     char *filename, *snapshot_name = NULL;
-    char c;
-    int ret;
+    int c, ret;
     int action = 0;
     qemu_timeval tv;