diff options
author | Sean McBride <sean@rogue-research.com> | 2013-07-26 14:13:45 -0400 |
---|---|---|
committer | hjelmn <Nathan Hjelm hjelmn@cs.unm.edu> | 2013-07-30 10:44:13 -0600 |
commit | ce8da723b4e4c29268c0a15f010838f5a70c931a (patch) | |
tree | 890080bccf30a33a6af2e1265d6645b4f0860ed6 /examples/xusb.c | |
parent | ea6c827af035b279fd6bbbcc2e8093766ed57367 (diff) | |
download | libusb-ce8da723b4e4c29268c0a15f010838f5a70c931a.tar.gz |
made some globals static to fix warnings
Diffstat (limited to 'examples/xusb.c')
-rw-r--r-- | examples/xusb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index bdb9794..4df65c4 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -48,9 +48,9 @@ #define usb_interface interface // Global variables -bool binary_dump = false; -bool extra_info = false; -const char* binary_name = NULL; +static bool binary_dump = false; +static bool extra_info = false; +static const char* binary_name = NULL; static int perr(char const *format, ...) { @@ -128,14 +128,14 @@ static uint8_t cdb_length[256] = { 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00, // F }; -enum test_type { +static enum test_type { USE_GENERIC, USE_PS3, USE_XBOX, USE_SCSI, USE_HID, } test_mode; -uint16_t VID, PID; +static uint16_t VID, PID; static void display_buffer_hex(unsigned char *buffer, unsigned size) { |