Commit 88e150a5695fc3f8cb9994b59f3b193003b56c9c

Authored by Christoph Egger
Committed by Blue Swirl
1 parent fff2a02f

isxdigit -> qemu_isxdigit

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
Showing 1 changed file with 2 additions and 2 deletions
hw/qdev-properties.c
@@ -117,9 +117,9 @@ static int parse_mac(DeviceState *dev, Property *prop, const char *str) @@ -117,9 +117,9 @@ static int parse_mac(DeviceState *dev, Property *prop, const char *str)
117 char *p; 117 char *p;
118 118
119 for (i = 0, pos = 0; i < 6; i++, pos += 3) { 119 for (i = 0, pos = 0; i < 6; i++, pos += 3) {
120 - if (!isxdigit(str[pos])) 120 + if (!qemu_isxdigit(str[pos]))
121 return -1; 121 return -1;
122 - if (!isxdigit(str[pos+1])) 122 + if (!qemu_isxdigit(str[pos+1]))
123 return -1; 123 return -1;
124 if (i == 5 && str[pos+2] != '\0') 124 if (i == 5 && str[pos+2] != '\0')
125 return -1; 125 return -1;