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-dump-up/ao-dump-up.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-dump-up/ao-dump-up.c')
-rw-r--r-- | ao-tools/ao-dump-up/ao-dump-up.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ao-tools/ao-dump-up/ao-dump-up.c b/ao-tools/ao-dump-up/ao-dump-up.c index df05088c..6866ef59 100644 --- a/ao-tools/ao-dump-up/ao-dump-up.c +++ b/ao-tools/ao-dump-up/ao-dump-up.c @@ -21,6 +21,7 @@ #include <unistd.h> #include <getopt.h> #include <string.h> +#include <ctype.h> #include "cc-usb.h" #include "cc.h" @@ -39,17 +40,6 @@ static void usage(char *program) exit(1); } -static uint8_t -log_checksum(int d[8]) -{ - uint8_t sum = 0x5a; - int i; - - for (i = 0; i < 8; i++) - sum += (uint8_t) d[i]; - return -sum; -} - static int get_nonwhite(struct cc_usb *cc, int timeout) { int c; @@ -147,7 +137,6 @@ main (int argc, char **argv) char *tty = NULL; char *device = NULL; int c; - char line[8192]; int nsamples; int i; int crc; |