summaryrefslogtreecommitdiff
path: root/monitor_italk.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-28 18:53:11 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-28 18:53:11 -0400
commitc651976d406e14ee43b48357c86b7b78d6e94821 (patch)
tree308816b29c9992ff89938013a6226bf9deb49c4f /monitor_italk.c
parent2807b4d18ae2a229c45e54f8423015c1ef8c371d (diff)
downloadgpsd-c651976d406e14ee43b48357c86b7b78d6e94821.tar.gz
Scan-build and splint cleanup. All regression tests pass.
Diffstat (limited to 'monitor_italk.c')
-rw-r--r--monitor_italk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/monitor_italk.c b/monitor_italk.c
index 10b6ecae..f38cc851 100644
--- a/monitor_italk.c
+++ b/monitor_italk.c
@@ -72,7 +72,7 @@ static void display_itk_navfix(unsigned char *buf, size_t len)
{
unsigned int tow, tod, nsec, d, svlist;
- unsigned short gps_week, flags, cflags, pflags, nsv;
+ unsigned short gps_week, nsv;
unsigned short year, mon, day, hour, min, sec;
double epx, epy, epz, evx, evy, evz;
double latitude, longitude;
@@ -82,9 +82,11 @@ static void display_itk_navfix(unsigned char *buf, size_t len)
if (len != 296)
return;
- flags = (ushort) getleu16(buf, 7 + 4);
+#ifdef __UNUSED__
+ flags = (ushort) getleu16(buf, 7 + 4); */
cflags = (ushort) getleu16(buf, 7 + 6);
pflags = (ushort) getleu16(buf, 7 + 8);
+#endif /* __UNUSED__ */
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
nsv = (ushort) MAX(getleu16(buf, 7 + 12), getleu16(buf, 7 + 14));