]> Git Repo - qemu.git/blobdiff - hw/usb-bus.c
slavio_timer: avoid structure holes spotted by pahole
[qemu.git] / hw / usb-bus.c
index f1dd55eccdabf79beccf675cddfbf204bdd483a7..c0bbc7c6b0f55b713faca062a7aa60d2f6a7bbe5 100644 (file)
@@ -342,7 +342,7 @@ static void usb_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent)
 static char *usb_get_dev_path(DeviceState *qdev)
 {
     USBDevice *dev = DO_UPCAST(USBDevice, qdev, qdev);
-    return qemu_strdup(dev->port->path);
+    return g_strdup(dev->port->path);
 }
 
 static char *usb_get_fw_dev_path(DeviceState *qdev)
@@ -353,7 +353,7 @@ static char *usb_get_fw_dev_path(DeviceState *qdev)
     long nr;
 
     fw_len = 32 + strlen(dev->port->path) * 6;
-    fw_path = qemu_malloc(fw_len);
+    fw_path = g_malloc(fw_len);
     in = dev->port->path;
     while (fw_len - pos > 0) {
         nr = strtol(in, &in, 10);
This page took 0.026718 seconds and 4 git commands to generate.