From: Igor Kovalenko <igor.v.kovalenko@gmail.com>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH] QemuOption really parse integer options
Date: Wed, 29 Jul 2009 00:59:05 +0400 [thread overview]
Message-ID: <b2fa41d60907281359o2fb5579cx4bc7da83d3c29a6@mail.gmail.com> (raw)
[-- 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;
reply other threads:[~2009-07-28 20:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b2fa41d60907281359o2fb5579cx4bc7da83d3c29a6@mail.gmail.com \
--to=igor.v.kovalenko@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).