aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2013-07-26 14:13:45 -0400
committerhjelmn <Nathan Hjelm hjelmn@cs.unm.edu>2013-07-30 10:44:13 -0600
commitce8da723b4e4c29268c0a15f010838f5a70c931a (patch)
tree890080bccf30a33a6af2e1265d6645b4f0860ed6 /examples
parentea6c827af035b279fd6bbbcc2e8093766ed57367 (diff)
downloadandroid_external_libusbx-ce8da723b4e4c29268c0a15f010838f5a70c931a.tar.gz
android_external_libusbx-ce8da723b4e4c29268c0a15f010838f5a70c931a.tar.bz2
android_external_libusbx-ce8da723b4e4c29268c0a15f010838f5a70c931a.zip
made some globals static to fix warnings
Diffstat (limited to 'examples')
-rw-r--r--examples/ezusb.c6
-rw-r--r--examples/xusb.c10
2 files changed, 8 insertions, 8 deletions
diff --git a/examples/ezusb.c b/examples/ezusb.c
index 931a86a..7505fa0 100644
--- a/examples/ezusb.c
+++ b/examples/ezusb.c
@@ -471,9 +471,9 @@ static int parse_iic(FILE *image, void *context,
}
/* the parse call will be selected according to the image type */
-int (*parse[IMG_TYPE_MAX])(FILE *image, void *context, bool (*is_external)(uint32_t addr, size_t len),
- int (*poke)(void *context, uint32_t addr, bool external, const unsigned char *data, size_t len))
- = { parse_ihex, parse_iic, parse_bin };
+static int (*parse[IMG_TYPE_MAX])(FILE *image, void *context, bool (*is_external)(uint32_t addr, size_t len),
+ int (*poke)(void *context, uint32_t addr, bool external, const unsigned char *data, size_t len))
+ = { parse_ihex, parse_iic, parse_bin };
/*****************************************************************************/
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)
{