diff options
author | Michael Tatarinov <kukabu@gmail.com> | 2011-09-30 06:47:10 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-30 06:47:10 -0400 |
commit | 3230c766b2db1550d5c4d7669f11c1a69d75bc86 (patch) | |
tree | 2714555cb1f07ee10a6b31ec80b565b5d65b387b /gpxlogger.c | |
parent | 88cf39a24114fc9eb27fbfdda20303f5e6d9a0d9 (diff) | |
download | gpsd-3230c766b2db1550d5c4d7669f11c1a69d75bc86.tar.gz |
Remove duplicate code.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'gpxlogger.c')
-rw-r--r-- | gpxlogger.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gpxlogger.c b/gpxlogger.c index c46df2ff..2576a847 100644 --- a/gpxlogger.c +++ b/gpxlogger.c @@ -294,12 +294,6 @@ int main(int argc, char **argv) source.server, source.port, source.device); #endif - /* initializes the gpsdata fields */ - gpsdata.status = STATUS_NO_FIX; - gpsdata.satellites_used = 0; - gps_clear_fix(&(gpsdata.fix)); - gps_clear_dop(&(gpsdata.dop)); - /* catch all interesting signals */ (void)signal(SIGTERM, quit_handler); (void)signal(SIGQUIT, quit_handler); @@ -316,7 +310,6 @@ int main(int argc, char **argv) //syslog (LOG_INFO, "---------- STARTED ----------"); - /* initialize for some export method */ if (gps_open(source.server, source.port, &gpsdata) != 0) { (void)fprintf(stderr, "%s: no gpsd running or network error: %d, %s\n", |