projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao-tools: Fix warnings in ao-tools
[fw/altos]
/
ao-tools
/
ao-dump-up
/
ao-dump-up.c
diff --git
a/ao-tools/ao-dump-up/ao-dump-up.c
b/ao-tools/ao-dump-up/ao-dump-up.c
index df05088cadaf2e4cb33d0b61482eac66f5210a5e..6866ef592997e7fe24bf9954d5c6fa81c3b56faa 100644
(file)
--- 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 <unistd.h>
#include <getopt.h>
#include <string.h>
+#include <ctype.h>
#include "cc-usb.h"
#include "cc.h"
#include "cc-usb.h"
#include "cc.h"
@@
-39,17
+40,6
@@
static void usage(char *program)
exit(1);
}
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;
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 *tty = NULL;
char *device = NULL;
int c;
- char line[8192];
int nsamples;
int i;
int crc;
int nsamples;
int i;
int crc;