diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2007-12-05 20:49:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2007-12-05 20:49:53 +0000 |
commit | f2643ad182d6dea3835a842b6140b0102cc8f14a (patch) | |
tree | 46c0b87dbfd597d8c83c782a6e6b2b7273e3c0bb | |
parent | 237a41170241cfb23d1a2505a38010a7c3ab2800 (diff) | |
download | gpsd-f2643ad182d6dea3835a842b6140b0102cc8f14a.tar.gz |
More splint cleanup.
-rw-r--r-- | cgps.c | 2 | ||||
-rw-r--r-- | gpsd.c | 4 | ||||
-rw-r--r-- | sirf.c | 4 |
3 files changed, 6 insertions, 4 deletions
@@ -180,6 +180,7 @@ static void update_probe(struct gps_data_t *gpsdata, } +/*@ -globstate @*/ static void windowsetup(void){ /* Set the window sizes per the following criteria: @@ -328,6 +329,7 @@ static void windowsetup(void){ (void)wborder(satellites, 0, 0, 0, 0, 0, 0, 0, 0); } } +/*@ +globstate @*/ /* This gets called once for each new compass sentence. */ static void update_compass_panel(struct gps_data_t *gpsdata, @@ -236,10 +236,10 @@ static int passivesock(char *service, char *protocol, int qlen) ppe = getprotobyname(protocol); if (strcmp(protocol, "udp") == 0) { type = SOCK_DGRAM; - /*@i1@*/proto = (ppe) ? ppe->p_proto : IPPROTO_UDP; + /*@i@*/proto = (ppe) ? ppe->p_proto : IPPROTO_UDP; } else { type = SOCK_STREAM; - /*@i1@*/proto = (ppe) ? ppe->p_proto : IPPROTO_TCP; + /*@i@*/proto = (ppe) ? ppe->p_proto : IPPROTO_TCP; } if ((s = socket(PF_INET, type, /*@i1@*/proto)) < 0) { gpsd_report(LOG_ERROR, "Can't create socket\n"); @@ -470,10 +470,10 @@ static gps_mask_t sirf_msg_geodetic(struct gps_device_t *session, unsigned char unpacked_date.tm_min = (int)getub(buf, 16); unpacked_date.tm_sec = 0; subseconds = getuw(buf, 17)*1e-3; - /*@ -compdef */ + /*@ -compdef -unrecog */ session->gpsdata.fix.time = session->gpsdata.sentence_time = (double)timegm(&unpacked_date)+subseconds; - /*@ +compdef */ + /*@ +compdef +unrecog */ gpsd_report(LOG_PROG, "MID 41 UTC: %lf\n", session->gpsdata.fix.time); #ifdef NTPSHM_ENABLE if (session->gpsdata.fix.mode > MODE_NO_FIX && unpacked_date.tm_year != 0) { |