summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-10-27 20:37:48 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-10-27 20:37:48 +0000
commitb8a51b70f24893847c32b985d16e0e6c22d20891 (patch)
tree9fb45d2e67794ffc6199940736eea75207b621d5 /packet.c
parent9a460550709be2da194f77503e20e8f79ef581ee (diff)
downloadgpsd-b8a51b70f24893847c32b985d16e0e6c22d20891.tar.gz
splint cleanup.
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet.c b/packet.c
index 047fb5a9..c2b1983c 100644
--- a/packet.c
+++ b/packet.c
@@ -750,7 +750,7 @@ ssize_t packet_parse(struct gps_device_t *session, size_t fix)
* <DLE>[pkt id] [data] <DLE><ETX>
*/
n = 0;
- /*@ +charint */
+ /*@ +charint @*/
if (session->inbuffer[n++] != DLE)
goto not_tsip;
pkt_id = session->inbuffer[n++]; /* packet ID */
@@ -767,6 +767,7 @@ ssize_t packet_parse(struct gps_device_t *session, size_t fix)
goto not_tsip;
/* Debug */
gpsd_report(4, "TSIP n= %#02x, len= %#02x\n", n, len);
+ /*@ -ifempty */
if ((0x41 == pkt_id) && (DLE == len))
/* pass */;
else if ((0x42 == pkt_id) && (0x16 == len ))
@@ -775,6 +776,7 @@ ssize_t packet_parse(struct gps_device_t *session, size_t fix)
/* pass */;
else
goto not_tsip;
+ /*@ -charint +ifempty @*/
packet_accept(session, TSIP_PACKET);
packet_discard(session);
break;