From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRo27-0002LN-3p for qemu-devel@nongnu.org; Fri, 17 Jul 2009 10:03:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRo21-0002Et-5a for qemu-devel@nongnu.org; Fri, 17 Jul 2009 10:03:29 -0400 Received: from [199.232.76.173] (port=48041 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRo21-0002Em-24 for qemu-devel@nongnu.org; Fri, 17 Jul 2009 10:03:25 -0400 Received: from [217.9.48.20] (port=37312 helo=donner.amd.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRo20-0000Bx-9O for qemu-devel@nongnu.org; Fri, 17 Jul 2009 10:03:24 -0400 Received: from localhost.amd.com (cegger@localhost.amd.com [127.0.0.1]) by donner.amd.com (8.14.3/8.13.6) with ESMTP id n6HDUQkX029902 for ; Fri, 17 Jul 2009 15:30:26 +0200 (CEST) From: Christoph Egger Date: Fri, 17 Jul 2009 15:30:25 +0200 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_xzHYKaf+pBLQlvJ" Message-Id: <200907171530.25833.Christoph.Egger@amd.com> Subject: [Qemu-devel] [PATCH] isxdigit -> qemu_isxdigit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Boundary-00=_xzHYKaf+pBLQlvJ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch uses qemu_isxdigit() instead of isxdigit(). Fixes build warning on NetBSD. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_xzHYKaf+pBLQlvJ Content-Type: text/x-diff; charset="us-ascii"; name="qemu_ctype.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qemu_ctype.diff" diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c index 06c25af..76699b0 100644 --- a/hw/qdev-properties.c +++ b/hw/qdev-properties.c @@ -117,9 +117,9 @@ static int parse_mac(DeviceState *dev, Property *prop, const char *str) char *p; for (i = 0, pos = 0; i < 6; i++, pos += 3) { - if (!isxdigit(str[pos])) + if (!qemu_isxdigit(str[pos])) return -1; - if (!isxdigit(str[pos+1])) + if (!qemu_isxdigit(str[pos+1])) return -1; if (i == 5 && str[pos+2] != '\0') return -1; --Boundary-00=_xzHYKaf+pBLQlvJ--