summaryrefslogtreecommitdiff
path: root/gpxlogger.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-11-25 13:21:01 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-11-25 13:21:01 +0000
commitc680ceac362d92ba8f2a72ed8e78f0528983e596 (patch)
treefc4b0c0bc669d3c936ad57e2eb352e94b971c709 /gpxlogger.c
parent908ffb880e7123b13b38ad1bbcc80051942c257e (diff)
downloadgpsd-c680ceac362d92ba8f2a72ed8e78f0528983e596.tar.gz
Fix the DBUS build.
Diffstat (limited to 'gpxlogger.c')
-rw-r--r--gpxlogger.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gpxlogger.c b/gpxlogger.c
index 8f0a2033..a9c32ead 100644
--- a/gpxlogger.c
+++ b/gpxlogger.c
@@ -172,6 +172,12 @@ static struct gps_fix_t gpsfix;
#include <glib/gprintf.h>
+/*
+ * FIXME: use here is a minor bug, should report epx and epy separately.
+ * How to mix together epx and epy to get a horizontal circular error.
+ */
+#define EMIX(x, y) (((x) > (y)) ? (x) : (y))
+
DBusConnection* connection;
static char gpsd_devname[BUFSIZ];
@@ -180,7 +186,7 @@ static DBusHandlerResult handle_gps_fix (DBusMessage* message)
{
DBusError error;
/* this packet format was designed before we split eph */
- double eph = EMIX(gpsfix->epx, gpsfix->epy);
+ double eph = EMIX(gpsfix.epx, gpsfix.epy);
dbus_error_init (&error);