summaryrefslogtreecommitdiff
path: root/timebase.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-24 10:39:49 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-24 10:39:49 -0400
commit63ff305e947ce217f7e8065953b2053338d35aaf (patch)
tree7305665e5af22482884fc9e783b35661e2138987 /timebase.c
parentca4e2a004ffca4013f200e096ef9ad1867ff35d2 (diff)
downloadgpsd-63ff305e947ce217f7e8065953b2053338d35aaf.tar.gz
splint cleanup. All regression tests pass, code splints clean.
Diffstat (limited to 'timebase.c')
-rw-r--r--timebase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/timebase.c b/timebase.c
index f9c61d56..8787d1f4 100644
--- a/timebase.c
+++ b/timebase.c
@@ -135,7 +135,7 @@ void gpsd_set_century(struct gps_device_t *session)
cp = session->packet.outbuffer + 5;
while (isspace(*cp))
--cp;
- year = strtod((char *)cp, &end);
+ year = (int)strtol((char *)cp, &end, 10);
session->context->century = year - (year % 100);
}
}