From c680ceac362d92ba8f2a72ed8e78f0528983e596 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 25 Nov 2009 13:21:01 +0000 Subject: Fix the DBUS build. --- gpxlogger.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gpxlogger.c') 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 +/* + * 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); -- cgit v1.2.1