* [Qemu-devel] [PATCH] QemuOption really parse integer options
@ 2009-07-28 20:59 Igor Kovalenko
0 siblings, 0 replies; only message in thread
From: Igor Kovalenko @ 2009-07-28 20:59 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 180 bytes --]
Store parsed value of integer option to result pointer.
This fixes -cdrom not adding any ide cdrom.
Signed-off-by: igor.v.kovalenko@gmail.com
--
Kind regards,
Igor V. Kovalenko
[-- Attachment #2: qemu-opt-parse-number --]
[-- Type: application/octet-stream, Size: 465 bytes --]
Index: qemu-trunk/qemu-option.c
===================================================================
--- qemu-trunk.orig/qemu-option.c
+++ qemu-trunk/qemu-option.c
@@ -193,6 +193,7 @@ static int parse_option_number(const cha
fprintf(stderr, "Option '%s' needs a number as parameter\n", name);
return -1;
}
+ *ret = number;
} else {
fprintf(stderr, "Option '%s' needs a parameter\n", name);
return -1;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-28 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-28 20:59 [Qemu-devel] [PATCH] QemuOption really parse integer options Igor Kovalenko
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).