summaryrefslogtreecommitdiff
path: root/monitor_garmin.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-10-24 17:44:25 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-10-24 17:44:25 -0400
commit00026f400c9eaeebbb6f5b50be76d58c264f85e2 (patch)
tree471f0104cd154151f6578e6454b8c705069a097e /monitor_garmin.c
parente23f27238ac96b55ac000c782c027475d898d2aa (diff)
downloadgpsd-00026f400c9eaeebbb6f5b50be76d58c264f85e2.tar.gz
Compiler warning and splint cleanup.
Diffstat (limited to 'monitor_garmin.c')
-rw-r--r--monitor_garmin.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/monitor_garmin.c b/monitor_garmin.c
index 5f155f18..a3cfc736 100644
--- a/monitor_garmin.c
+++ b/monitor_garmin.c
@@ -148,19 +148,20 @@ static bool garmin_bin_initialize(void)
/*@+globstate@*/
}
-/*@ -globstate */
+/*@ -globstate -compdef */
static void garmin_bin_update(uint16_t pkt_id, uint32_t pkt_size UNUSED, unsigned char *pkt_data)
{
int i;
cpo_sat_data *sats = NULL;
cpo_pvt_data *pvt = NULL;
- cpo_rcv_data *rmd = NULL;
+ //cpo_rcv_data *rmd = NULL;
char tbuf[JSON_DATE_MAX+1];
switch (pkt_id) {
case 0x29: /* Receiver Measurement Record */
case 0x34:
- rmd = (cpo_rcv_data *)pkt_data; /* for future use */
+ /* for future use */
+ //rmd = (cpo_rcv_data *)pkt_data;
monitor_log("RMD 0x%02x=", pkt_id);
break;
@@ -274,7 +275,7 @@ static void garmin_bin_ser_update(void)
monitor_log("BAD 0x%02x=", buf[1]);
}
}
-/*@ +globstate */
+/*@ +globstate +compdef */
static void garmin_bin_wrap(void)
{