diff options
author | Josef Karthauser <joe@FreeBSD.org> | 2002-03-12 16:05:11 +0000 |
---|---|---|
committer | Josef Karthauser <joe@FreeBSD.org> | 2002-03-12 16:05:11 +0000 |
commit | fa038b6553b67a1acf92a92f17eedabac5fd97ce (patch) | |
tree | 184d03596a253f211957f5b97cf091686d3c8ac2 /devel/libusb | |
parent | d3bf8f13bf21a6cfb73dcd3cfe7a9cc55408b4d0 (diff) |
Fix a typo in the last patch.
Spotted by: John Reynolds~ <jreynold@sedona.ch.intel.com>
Notes
Notes:
svn path=/head/; revision=55936
Diffstat (limited to 'devel/libusb')
-rw-r--r-- | devel/libusb/files/patch-bsd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/devel/libusb/files/patch-bsd.c b/devel/libusb/files/patch-bsd.c index 7a792ebf7e94..7fee0b2af9be 100644 --- a/devel/libusb/files/patch-bsd.c +++ b/devel/libusb/files/patch-bsd.c @@ -12,7 +12,7 @@ if (dev->interface < 0) USB_ERROR(-EINVAL); -+#if (__FreeBSD_version > 50000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) ++#if (__FreeBSD_version > 500000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) intf.interface_index = dev->interface; intf.alt_no = alternate; +#else @@ -26,7 +26,7 @@ fprintf(stderr, "usb_control_msg: %d %d %d %d %p %d %d\n", requesttype, request, value, index, bytes, size, timeout); -+#if (__FreeBSD_version > 50000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) ++#if (__FreeBSD_version > 500000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) req.request.bmRequestType = requesttype; req.request.bRequest = request; USETW(req.request.wValue, value); @@ -51,7 +51,7 @@ USB_ERROR_STR(ret, "error sending control message: %s", strerror(errno)); -+#if (__FreeBSD_version > 50000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) ++#if (__FreeBSD_version > 500000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) return UGETW(req.request.wLength); +#else + return UGETW(req.ucr_request.wLength); @@ -63,7 +63,7 @@ struct usb_device *dev; char buf[20]; -+#if (__FreeBSD_version > 50000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) ++#if (__FreeBSD_version > 500000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) di.addr = device; +#else + di.udi_addr = device; @@ -73,7 +73,7 @@ /* There's a device; is it one we should mess with? */ -+#if (__FreeBSD_version > 50000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) ++#if (__FreeBSD_version > 500000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) if (strncmp(di.devnames[0], "ugen", 4) != 0) +#else + if (strncmp(di.udi_devnames[0], "ugen", 4) != 0) @@ -82,7 +82,7 @@ continue; #if __FreeBSD__ -+#if (__FreeBSD_version > 50000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) ++#if (__FreeBSD_version > 500000 && __FreeBSD_version < 500031) || (__FreeBSD_version < 450001) snprintf(buf, sizeof(buf) - 1, "/dev/%s", di.devnames[0]); +#else + snprintf(buf, sizeof(buf) - 1, "/dev/%s", di.udi_devnames[0]); |