summaryrefslogtreecommitdiff
path: root/timebase.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-16 20:42:26 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-16 20:42:26 -0400
commitddc22ff56acef0690abfd22ee640cda4eb143933 (patch)
treebcbccbbab554a3e2915abfad9b5fe91a6604ff08 /timebase.c
parent61ab6a6636762115689a190b4a9fe3386008d24c (diff)
downloadgpsd-ddc22ff56acef0690abfd22ee640cda4eb143933.tar.gz
Cleanup motivated by new cppcheck with more tests. All regression tests pass.
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 3b1d3287..10761214 100644
--- a/timebase.c
+++ b/timebase.c
@@ -130,8 +130,8 @@ void gpsd_set_century(struct gps_device_t *session)
{
unsigned char *cp;
char *end;
- int year;
if (strstr((char *)session->packet.outbuffer, "Date:") != NULL) {
+ int year;
cp = session->packet.outbuffer + 5;
while (isspace(*cp))
--cp;