summaryrefslogtreecommitdiff
path: root/driver_italk.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-30 17:10:53 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-30 17:10:53 -0400
commit28bf37132d86cc59320e21d843960d086cef664c (patch)
treebf085b5f89f1d1061b6a88ecc66c50721b13d86c /driver_italk.c
parentecb7e1ff3ec73000918c56861c55258c2d4deada (diff)
downloadgpsd-28bf37132d86cc59320e21d843960d086cef664c.tar.gz
Retire splint from our set of static analyzers.
The proximate cause was that we've been seing emission of error messages that were randomly and disturbingly variable across different environments - notably Raspbian and Gentoo splint gave nontrivially different results than Ubuntu 14.10 splint. And this was *not* due to Ubuntu patches! A pristine splint built from the 3.1.2 tarball on Ubuntu didn't match the Raspbian and Gentoo results either. But this has been coming for a while. Easy access to more modern static analyzers such as coverity, scan-build and cppcheck has been decreasing the utility of splint, which is unmaintained and somewhat buggy and not easy to use. Only file not cleaned is ppsthread.c, because Gary has been working on it during this cleanup. All regression tests pass. PPS observed live on GR601-W.
Diffstat (limited to 'driver_italk.c')
-rw-r--r--driver_italk.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/driver_italk.c b/driver_italk.c
index 4c42597d..c24c0346 100644
--- a/driver_italk.c
+++ b/driver_italk.c
@@ -13,9 +13,7 @@
#include <stdbool.h>
#include <string.h>
#include <math.h>
-#ifndef S_SPLINT_S
#include <unistd.h>
-#endif /* S_SPLINT_S */
#include "gpsd.h"
#if defined(ITRAX_ENABLE) && defined(BINARY_ENABLE)
@@ -259,7 +257,6 @@ static gps_mask_t decode_itk_pseudo(struct gps_device_t *session,
(unsigned short int)getleu16((char *)buf, 7 + 8),
(unsigned int)getleu32(buf, 7 + 38) / 1000.0);
- /*@-type@*/
for (i = 0; i < n; i++){
session->gpsdata.skyview[i].PRN = getleu16(buf, 7 + 26 + (i*36)) & 0xff;
session->gpsdata.skyview[i].ss = getleu16(buf, 7 + 26 + (i*36 + 2)) & 0x3f;
@@ -272,11 +269,9 @@ static gps_mask_t decode_itk_pseudo(struct gps_device_t *session,
session->gpsdata.raw.codephase[i] = NAN;
session->gpsdata.raw.deltarange[i] = NAN;
}
- /*@+type@*/
return RAW_IS;
}
-/*@ +charint @*/
static gps_mask_t italk_parse(struct gps_device_t *session,
unsigned char *buf, size_t len)
{
@@ -383,7 +378,6 @@ static gps_mask_t italk_parse(struct gps_device_t *session,
return mask | ONLINE_SET;
}
-/*@ -charint @*/
static gps_mask_t italk_parse_input(struct gps_device_t *session)
{