diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-05 17:56:40 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-05 17:56:40 +0000 |
commit | a38131b669253fe40eff41e17ab7d1df78adbcd8 (patch) | |
tree | 1588e622b8523f82e02a5a09dbef6fa5dfd95dd3 /usb-bsd.c | |
parent | b3efe5c890f3fa54a3ab48f82ef01d474069493b (diff) | |
download | qemu-a38131b669253fe40eff41e17ab7d1df78adbcd8.zip qemu-a38131b669253fe40eff41e17ab7d1df78adbcd8.tar.gz qemu-a38131b669253fe40eff41e17ab7d1df78adbcd8.tar.bz2 |
Attached patch contains warning fixes.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5888 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'usb-bsd.c')
-rw-r--r-- | usb-bsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -68,7 +68,7 @@ static int ensure_ep_open(USBHostDevice *dev, int ep, int mode) ep = UE_GET_ADDR(ep); if (dev->ep_fd[ep] < 0) { -#if __FreeBSD__ +#ifdef __FreeBSD__ snprintf(buf, sizeof(buf) - 1, "%s.%d", dev->devpath, ep); #else snprintf(buf, sizeof(buf) - 1, "%s.%02d", dev->devpath, ep); @@ -321,7 +321,7 @@ USBDevice *usb_host_device_open(const char *devname) return NULL; } -#if __FreeBSD__ +#ifdef __FreeBSD__ snprintf(ctlpath, PATH_MAX, "/dev/%s", bus_info.udi_devnames[0]); #else snprintf(ctlpath, PATH_MAX, "/dev/%s.00", bus_info.udi_devnames[0]); @@ -413,7 +413,7 @@ static int usb_host_scan(void *opaque, USBScanFunc *func) if (strncmp(bus_info.udi_devnames[0], "ugen", 4) != 0) continue; -#if __FreeBSD__ +#ifdef __FreeBSD__ snprintf(devbuf, sizeof(devbuf) - 1, "/dev/%s", bus_info.udi_devnames[0]); #else snprintf(devbuf, sizeof(devbuf) - 1, "/dev/%s.00", bus_info.udi_devnames[0]); |