summaryrefslogtreecommitdiff
path: root/gpxlogger.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-27 14:50:59 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-27 14:50:59 -0400
commitc7d7030b8881be73bbbe1492ef4ddd6892d81a2f (patch)
treee9e3575c6e1a4a57859c085edf7e2ee2b1bc113a /gpxlogger.c
parentd0c9777345d50ac189f88914f3980b2fc8161035 (diff)
downloadgpsd-c7d7030b8881be73bbbe1492ef4ddd6892d81a2f.tar.gz
More refactoring.
gpxlogger currently works with socket and DBUS methods but fails with a segfault in the shm code.
Diffstat (limited to 'gpxlogger.c')
-rw-r--r--gpxlogger.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gpxlogger.c b/gpxlogger.c
index 60ce409c..18c128a8 100644
--- a/gpxlogger.c
+++ b/gpxlogger.c
@@ -193,10 +193,9 @@ static int dbus_mainloop(void)
{
int s;
- print_gpx_header();
if ((s = gps_dbus_open(&gpsdata)) == 0) {
- gps_dbus_stream(&gpsdata, 0, conditionally_log_fix);
- gps_dbus_mainloop();
+ print_gpx_header();
+ gps_dbus_mainloop(&gpsdata, 0, conditionally_log_fix);
}
return 0;
}