]> git.proxmox.com Git - qemu.git/commitdiff
isxdigit -> qemu_isxdigit
authorChristoph Egger <Christoph.Egger@amd.com>
Fri, 17 Jul 2009 17:48:02 +0000 (17:48 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 22 Jul 2009 20:40:55 +0000 (15:40 -0500)
Hi!

Attached patch uses qemu_isxdigit() instead of isxdigit().
Fixes build warning on NetBSD.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
--
---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

hw/qdev-properties.c

index 06c25aff71fe11305d1b3c7aa105001fac8b72a8..76699b08ba6e7387eec60b83d1e6d24ddb3a48bd 100644 (file)
@@ -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;