diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-30 17:10:53 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-30 17:10:53 -0400 |
commit | 28bf37132d86cc59320e21d843960d086cef664c (patch) | |
tree | bf085b5f89f1d1061b6a88ecc66c50721b13d86c /libgps.h | |
parent | ecb7e1ff3ec73000918c56861c55258c2d4deada (diff) | |
download | gpsd-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 'libgps.h')
-rw-r--r-- | libgps.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -15,17 +15,17 @@ #ifdef __cplusplus extern "C" { #endif -extern int gps_sock_open(/*@null@*/const char *, /*@null@*/const char *, - /*@out@*/struct gps_data_t *); +extern int gps_sock_open(const char *, const char *, + struct gps_data_t *); extern int gps_sock_close(struct gps_data_t *); extern int gps_sock_send(struct gps_data_t *, const char *); -extern int gps_sock_read(/*@out@*/struct gps_data_t *); +extern int gps_sock_read(struct gps_data_t *); extern bool gps_sock_waiting(const struct gps_data_t *, int); -extern int gps_sock_stream(struct gps_data_t *, unsigned int, /*@null@*/void *); -extern const char /*@observer@*/ *gps_sock_data(const struct gps_data_t *); +extern int gps_sock_stream(struct gps_data_t *, unsigned int, void *); +extern const char *gps_sock_data(const struct gps_data_t *); extern int gps_sock_mainloop(struct gps_data_t *, int, void (*)(struct gps_data_t *)); -extern int gps_shm_open(/*@out@*/struct gps_data_t *); +extern int gps_shm_open(struct gps_data_t *); extern void gps_shm_close(struct gps_data_t *); extern bool gps_shm_waiting(const struct gps_data_t *, int); extern int gps_shm_read(struct gps_data_t *); @@ -37,7 +37,7 @@ extern int gps_dbus_mainloop(struct gps_data_t *, int, void (*)(struct gps_data_t *)); extern int json_ais_read(const char *, char *, size_t, struct ais_t *, - /*@null@*/const char **); + const char **); #ifdef __cplusplus } #endif |