提交 bb87ece5 编写于 作者: C Christoph Egger 提交者: Anthony Liguori

tolower -> qemu_tolower

Use qemu_tolower() instead of tolower().
Fixes warning on NetBSD.
Signed-off-by: NChristoph Egger <Christoph.Egger@amd.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 0ff6697d
...@@ -520,7 +520,7 @@ BusState *qbus_create(BusInfo *info, DeviceState *parent, const char *name) ...@@ -520,7 +520,7 @@ BusState *qbus_create(BusInfo *info, DeviceState *parent, const char *name)
len = snprintf(buf, len, "%s.%d", info->name, len = snprintf(buf, len, "%s.%d", info->name,
parent ? parent->num_child_bus : 0); parent ? parent->num_child_bus : 0);
for (i = 0; i < len; i++) for (i = 0; i < len; i++)
buf[i] = tolower(buf[i]); buf[i] = qemu_tolower(buf[i]);
bus->name = buf; bus->name = buf;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册