summaryrefslogtreecommitdiff
path: root/ao-tools/ao-edit-telem
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2019-01-03 11:41:49 -0800
committerKeith Packard <keithp@keithp.com>2019-01-03 12:09:58 -0800
commit6f729ff46b2f4531db68f0af85e7e9fe0f6d1969 (patch)
treed0a93a48bd3012decbb230f5aa17ecc6c793cad2 /ao-tools/ao-edit-telem
parentf14c799ae7ff3be56c28f5694f04c03daff7708e (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-edit-telem')
-rw-r--r--ao-tools/ao-edit-telem/ao-edit-telem.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/ao-tools/ao-edit-telem/ao-edit-telem.c b/ao-tools/ao-edit-telem/ao-edit-telem.c
index e2795ede..92cde3dc 100644
--- a/ao-tools/ao-edit-telem/ao-edit-telem.c
+++ b/ao-tools/ao-edit-telem/ao-edit-telem.c
@@ -73,7 +73,7 @@ int pending = 1;
static void
dump_saved(void);
-void
+static void
doit(union ao_telemetry_all *telem)
{
double lat, lon;
@@ -142,10 +142,9 @@ int
main (int argc, char **argv)
{
char line[80];
- int c, i, ret;
- char *s;
+ int c, i, ret = 0;
FILE *file;
- int serial;
+
while ((c = getopt_long(argc, argv, "l:L:", options, NULL)) != -1) {
switch (c) {
case 'L':
@@ -166,11 +165,6 @@ main (int argc, char **argv)
ret++;
continue;
}
- s = strstr(argv[i], "-serial-");
- if (s)
- serial = atoi(s + 8);
- else
- serial = 0;
while (fgets(line, sizeof (line), file)) {
union ao_telemetry_all telem;