* [Qemu-devel] [6578] Make qemu-img argument handling POSIX compliant
@ 2009-02-09 18:14 Aurelien Jarno
0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2009-02-09 18:14 UTC (permalink / raw)
To: qemu-devel
Revision: 6578
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6578
Author: aurel32
Date: 2009-02-09 18:14:31 +0000 (Mon, 09 Feb 2009)
Log Message:
-----------
Make qemu-img argument handling POSIX compliant
Signed-off-by: Herv?\195?\169 Poussineau <hpoussin@reactos.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Modified Paths:
--------------
trunk/qemu-img.c
Modified: trunk/qemu-img.c
===================================================================
--- trunk/qemu-img.c 2009-02-09 17:00:41 UTC (rev 6577)
+++ trunk/qemu-img.c 2009-02-09 18:14:31 UTC (rev 6578)
@@ -865,7 +865,7 @@
if (argc < 2)
help();
cmd = argv[1];
- optind++;
+ argc--; argv++;
if (!strcmp(cmd, "create")) {
img_create(argc, argv);
} else if (!strcmp(cmd, "commit")) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-09 18:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-09 18:14 [Qemu-devel] [6578] Make qemu-img argument handling POSIX compliant Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).