summaryrefslogtreecommitdiff
path: root/driver_nmea.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-19 08:48:36 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-19 08:48:36 -0500
commitce0258511c9d04f7afa3c46b8dcb4d6108d2148e (patch)
treeb80c9f779baa54b26d4be5d4805cba9ed28fb168 /driver_nmea.c
parent468d2ad0f276b02dd131a574c087f8a797300c2a (diff)
downloadgpsd-ce0258511c9d04f7afa3c46b8dcb4d6108d2148e.tar.gz
Use the century slot in the context structure.
Duh. I previously implemented it and iniitialized it prperly, then forgot to actually use it instead of CENTURY_BASE. Soon this will matter because I'm going to implement some heuristics for limited trust in the system clock.
Diffstat (limited to 'driver_nmea.c')
-rw-r--r--driver_nmea.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_nmea.c b/driver_nmea.c
index a3e4f426..7e9215b4 100644
--- a/driver_nmea.c
+++ b/driver_nmea.c
@@ -74,7 +74,7 @@ static void merge_ddmmyy(char *ddmmyy, struct gps_device_t *session)
int mday = DD(ddmmyy);
if (year <= 0) {
- year = (CENTURY_BASE + yy) - 1900;
+ year = (session->context->century + yy) - 1900;
} else if (year % 100 != yy) {
/* update year */
if (year % 100 == 99 && yy == 0)