From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVtlT-0005EM-Sh for qemu-devel@nongnu.org; Tue, 28 Jul 2009 16:59:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVtlP-0005Di-GW for qemu-devel@nongnu.org; Tue, 28 Jul 2009 16:59:15 -0400 Received: from [199.232.76.173] (port=40345 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVtlP-0005Df-7Z for qemu-devel@nongnu.org; Tue, 28 Jul 2009 16:59:11 -0400 Received: from mx20.gnu.org ([199.232.41.8]:3197) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVtlO-0007GC-Rh for qemu-devel@nongnu.org; Tue, 28 Jul 2009 16:59:10 -0400 Received: from mail-bw0-f227.google.com ([209.85.218.227]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVtlN-00016u-5N for qemu-devel@nongnu.org; Tue, 28 Jul 2009 16:59:09 -0400 Received: by bwz27 with SMTP id 27so304349bwz.34 for ; Tue, 28 Jul 2009 13:59:06 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 29 Jul 2009 00:59:05 +0400 Message-ID: From: Igor Kovalenko Content-Type: multipart/mixed; boundary=0016364166e9587722046fca57ab Subject: [Qemu-devel] [PATCH] QemuOption really parse integer options List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel --0016364166e9587722046fca57ab Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --0016364166e9587722046fca57ab Content-Type: application/octet-stream; name=qemu-opt-parse-number Content-Disposition: attachment; filename=qemu-opt-parse-number Content-Transfer-Encoding: base64 X-Attachment-Id: f_fxp406e80 SW5kZXg6IHFlbXUtdHJ1bmsvcWVtdS1vcHRpb24uYwo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBxZW11LXRydW5r Lm9yaWcvcWVtdS1vcHRpb24uYworKysgcWVtdS10cnVuay9xZW11LW9wdGlvbi5jCkBAIC0xOTMs NiArMTkzLDcgQEAgc3RhdGljIGludCBwYXJzZV9vcHRpb25fbnVtYmVyKGNvbnN0IGNoYQogICAg ICAgICAgICAgZnByaW50ZihzdGRlcnIsICJPcHRpb24gJyVzJyBuZWVkcyBhIG51bWJlciBhcyBw YXJhbWV0ZXJcbiIsIG5hbWUpOwogICAgICAgICAgICAgcmV0dXJuIC0xOwogICAgICAgICB9Cisg ICAgICAgICpyZXQgPSBudW1iZXI7CiAgICAgfSBlbHNlIHsKICAgICAgICAgZnByaW50ZihzdGRl cnIsICJPcHRpb24gJyVzJyBuZWVkcyBhIHBhcmFtZXRlclxuIiwgbmFtZSk7CiAgICAgICAgIHJl dHVybiAtMTsK --0016364166e9587722046fca57ab--