diff options
author | Keith Packard <keithp@keithp.com> | 2019-01-03 11:41:49 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2019-01-03 12:09:58 -0800 |
commit | 6f729ff46b2f4531db68f0af85e7e9fe0f6d1969 (patch) | |
tree | d0a93a48bd3012decbb230f5aa17ecc6c793cad2 /ao-tools/ao-usbload/ao-usbload.c | |
parent | f14c799ae7ff3be56c28f5694f04c03daff7708e (diff) |
ao-tools: Fix warnings in ao-tools
None of these appear likely to have caused actual problems.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/ao-usbload/ao-usbload.c')
-rw-r--r-- | ao-tools/ao-usbload/ao-usbload.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/ao-tools/ao-usbload/ao-usbload.c b/ao-tools/ao-usbload/ao-usbload.c index 31ee138a..6da57bac 100644 --- a/ao-tools/ao-usbload/ao-usbload.c +++ b/ao-tools/ao-usbload/ao-usbload.c @@ -96,7 +96,7 @@ static void usage(char *program) exit(1); } -void +static void done(struct cc_usb *cc, int code) { /* cc_usb_printf(cc, "a\n"); */ @@ -124,7 +124,7 @@ ucs2len(uint16_t *ucs2) return len; } -int +static int putucs4(uint32_t c, FILE *file) { char d; @@ -162,23 +162,14 @@ main (int argc, char **argv) { char *device = NULL; char *filename; - Elf *e; int raw = 0; char *serial_end; unsigned int serial = 0; - char *serial_ucs2; - int serial_ucs2_len; - char serial_int[2]; - unsigned int s; - int i; - int string_num; uint32_t cal = 0; - char cal_int[4]; char *cal_end; int c; int was_flashed = 0; struct ao_hex_image *load; - int tries; struct cc_usb *cc = NULL; char *tty = NULL; int success; |