Commit 40a4539e2041f4a9dd52d269f46926b7ed2b73ff
1 parent
02082dc9
qemu-img: Fix type of getopt return value (Kevin Wolf)
getopt doesn't return a char but an int. Signed-off-by: Kevin Wolf <kwolf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6331 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
2 deletions
qemu-img.c
| @@ -751,8 +751,7 @@ static void img_snapshot(int argc, char **argv) | @@ -751,8 +751,7 @@ static void img_snapshot(int argc, char **argv) | ||
| 751 | BlockDriverState *bs; | 751 | BlockDriverState *bs; |
| 752 | QEMUSnapshotInfo sn; | 752 | QEMUSnapshotInfo sn; |
| 753 | char *filename, *snapshot_name = NULL; | 753 | char *filename, *snapshot_name = NULL; |
| 754 | - char c; | ||
| 755 | - int ret; | 754 | + int c, ret; |
| 756 | int action = 0; | 755 | int action = 0; |
| 757 | qemu_timeval tv; | 756 | qemu_timeval tv; |
| 758 | 757 |