aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libusb
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-03-13 00:05:11 +0800
committerjoe <joe@FreeBSD.org>2002-03-13 00:05:11 +0800
commitb66a3b81cf725adde3881a29934668400f5ca407 (patch)
treefa1a66d6a6c075b759b08c0dad1a89a4a666c14e /devel/libusb
parente485352d728ae6e49022086fd374f66ecef83631 (diff)
downloadfreebsd-ports-gnome-b66a3b81cf725adde3881a29934668400f5ca407.tar.gz
freebsd-ports-gnome-b66a3b81cf725adde3881a29934668400f5ca407.tar.zst
freebsd-ports-gnome-b66a3b81cf725adde3881a29934668400f5ca407.zip
Fix a typo in the last patch.
Spotted by: John Reynolds~ <jreynold@sedona.ch.intel.com>
Diffstat (limited to 'devel/libusb')
-rw-r--r--devel/libusb/files/patch-bsd.c12
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]);