qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tolower -> qemu_tolower
@ 2009-07-30 13:28 Christoph Egger
  0 siblings, 0 replies; only message in thread
From: Christoph Egger @ 2009-07-30 13:28 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 412 bytes --]


Hi!

Use qemu_tolower() instead of tolower().
Fixes 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: 462 bytes --]

diff --git a/hw/qdev.c b/hw/qdev.c
index 479eb72..00a20a8 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -503,7 +503,7 @@ BusState *qbus_create(BusInfo *info, DeviceState *parent, const char *name)
         len = snprintf(buf, len, "%s.%d", info->name,
                        parent ? parent->num_child_bus : 0);
         for (i = 0; i < len; i++)
-            buf[i] = tolower(buf[i]);
+            buf[i] = qemu_tolower(buf[i]);
         bus->name = buf;
     }
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-30 13:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30 13:28 [Qemu-devel] [PATCH] tolower -> qemu_tolower Christoph Egger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).