diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-06-24 10:39:49 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-06-24 10:39:49 -0400 |
commit | 63ff305e947ce217f7e8065953b2053338d35aaf (patch) | |
tree | 7305665e5af22482884fc9e783b35661e2138987 /timebase.c | |
parent | ca4e2a004ffca4013f200e096ef9ad1867ff35d2 (diff) | |
download | gpsd-63ff305e947ce217f7e8065953b2053338d35aaf.tar.gz |
splint cleanup. All regression tests pass, code splints clean.
Diffstat (limited to 'timebase.c')
-rw-r--r-- | timebase.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |