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-edit-telem
/
ao-edit-telem.c
diff --git
a/ao-tools/ao-edit-telem/ao-edit-telem.c
b/ao-tools/ao-edit-telem/ao-edit-telem.c
index e2795ede180908ac11acb1b2ff93c4e24ba80660..92cde3dc73ee88be3532550bff301a6bd5e241ee 100644
(file)
--- 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);
static void
dump_saved(void);
-void
+
static
void
doit(union ao_telemetry_all *telem)
{
double lat, lon;
doit(union ao_telemetry_all *telem)
{
double lat, lon;
@@
-142,10
+142,9
@@
int
main (int argc, char **argv)
{
char line[80];
main (int argc, char **argv)
{
char line[80];
- int c, i, ret;
- char *s;
+ int c, i, ret = 0;
FILE *file;
FILE *file;
- int serial;
+
while ((c = getopt_long(argc, argv, "l:L:", options, NULL)) != -1) {
switch (c) {
case 'L':
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;
}
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;
while (fgets(line, sizeof (line), file)) {
union ao_telemetry_all telem;