diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-10-15 14:35:04 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-10-15 14:36:03 +0200 |
commit | 0c34ff9b16139f5a61140c0b03ce9e80200c2b29 (patch) | |
tree | 5f57b3aba9dcbbc13457ff651072784a13d33261 /app-pda/pilot-link/files/pilot-link-0.12.3-libusb-compat-usb_open.patch | |
parent | app-text/mpage: Move patches to a dist tarball (diff) | |
download | gentoo-0c34ff9b16139f5a61140c0b03ce9e80200c2b29.tar.gz gentoo-0c34ff9b16139f5a61140c0b03ce9e80200c2b29.tar.bz2 gentoo-0c34ff9b16139f5a61140c0b03ce9e80200c2b29.zip |
app-pda/pilot-link: Move patches to a dist tarball
Closes: https://bugs.gentoo.org/620548
Diffstat (limited to 'app-pda/pilot-link/files/pilot-link-0.12.3-libusb-compat-usb_open.patch')
-rw-r--r-- | app-pda/pilot-link/files/pilot-link-0.12.3-libusb-compat-usb_open.patch | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/app-pda/pilot-link/files/pilot-link-0.12.3-libusb-compat-usb_open.patch b/app-pda/pilot-link/files/pilot-link-0.12.3-libusb-compat-usb_open.patch deleted file mode 100644 index 3f580c5af1e1..000000000000 --- a/app-pda/pilot-link/files/pilot-link-0.12.3-libusb-compat-usb_open.patch +++ /dev/null @@ -1,21 +0,0 @@ -With libusb-compat, usb_open() calls must be checked for their return value, as -NULL is now returned on failure. - -Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> - -diff -Nuar pilot-link-0.12.3.orig/libpisock/libusb.c pilot-link-0.12.3/libpisock/libusb.c ---- pilot-link-0.12.3.orig/libpisock/libusb.c 2007-02-09 08:06:22.000000000 -0800 -+++ pilot-link-0.12.3/libpisock/libusb.c 2009-05-18 17:32:16.316895284 -0700 -@@ -141,6 +141,12 @@ - - LOG((PI_DBG_DEV, PI_DBG_LVL_DEBUG, "%s: USB_handle=%p\n", - __FILE__, USB_handle)); -+ -+ if(USB_handle == NULL) { -+ LOG((PI_DBG_DEV, PI_DBG_LVL_DEBUG, "%s: Unable to open device.\n", -+ __FILE__)); -+ continue; -+ } - - data->ref = USB_handle; - |