* [Qemu-devel] [PATCH] isxdigit -> qemu_isxdigit
@ 2009-07-17 13:30 Christoph Egger
0 siblings, 0 replies; only message in thread
From: Christoph Egger @ 2009-07-17 13:30 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 435 bytes --]
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
[-- Attachment #2: qemu_ctype.diff --]
[-- Type: text/x-diff, Size: 564 bytes --]
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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-17 14:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-17 13:30 [Qemu-devel] [PATCH] isxdigit -> qemu_isxdigit Christoph Egger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.