This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/packages/libpcap/patches/40_fix_bus_usb_path.diff

17 lines
494 B
Diff
Raw Normal View History

2013-07-13 17:19:22 +01:00
Fix USB bus path; /proc/bus/usb is deprecated.
---
pcap-usb-linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/pcap-usb-linux.c
+++ b/pcap-usb-linux.c
@@ -68,7 +68,7 @@
#define USB_TEXT_DIR_OLD "/sys/kernel/debug/usbmon"
#define USB_TEXT_DIR "/sys/kernel/debug/usb/usbmon"
#define SYS_USB_BUS_DIR "/sys/bus/usb/devices"
-#define PROC_USB_BUS_DIR "/proc/bus/usb"
+#define PROC_USB_BUS_DIR "/dev/bus/usb"
#define USB_LINE_LEN 4096
#if __BYTE_ORDER == __LITTLE_ENDIAN