Permalink
Browse files

add lsusb.h to fix some complier warnings.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information...
1 parent c0e6925 commit 567aa81b0e042e5cebd118514a414beb2e8f38a2 @gregkh committed Oct 22, 2011
Showing with 9 additions and 2 deletions.
  1. +1 −1 Makefile.am
  2. +1 −0 lsusb-t.c
  3. +1 −1 lsusb.c
  4. +6 −0 lsusb.h
View
@@ -18,7 +18,7 @@ bin_SCRIPTS = \
lsusb.py
lsusb_SOURCES = \
- lsusb.c \
+ lsusb.c lsusb.h \
lsusb-t.c \
list.h \
names.c names.h \
View
@@ -10,6 +10,7 @@
#include <stddef.h>
#include "list.h"
+#include "lsusb.h"
#define MY_SYSFS_FILENAME_LEN 255
#define MY_PATH_MAX 4096
View
@@ -38,6 +38,7 @@
#include <libusb.h>
#include <unistd.h>
+#include "lsusb.h"
#include "names.h"
#include "devtree.h"
#include "usbmisc.h"
@@ -106,7 +107,6 @@
#define HUB_STATUS_BYTELEN 3 /* max 3 bytes status = hub + 23 ports */
-extern int lsusb_t(void);
static const char procbususb[] = "/proc/bus/usb";
static unsigned int verblevel = VERBLEVEL_DEFAULT;
static int do_report_desc = 1;
View
@@ -0,0 +1,6 @@
+#ifndef _LSUSB_H
+#define _LSUSB_H
+
+extern int lsusb_t(void);
+
+#endif

0 comments on commit 567aa81

Please sign in to comment.