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 /gps_json.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 'gps_json.h')
-rw-r--r-- | gps_json.h | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -16,31 +16,31 @@ extern "C" { void json_data_report(const gps_mask_t, const struct gps_device_t *, const struct policy_t *, - /*@out@*/char *, size_t); -char *json_stringify(/*@out@*/char *, size_t, /*@in@*/const char *); + char *, size_t); +char *json_stringify(char *, size_t, const char *); void json_tpv_dump(const struct gps_device_t *, - const struct policy_t *, /*@out@*/char *, size_t); -void json_noise_dump(const struct gps_data_t *, /*@out@*/char *, size_t); -void json_sky_dump(const struct gps_data_t *, /*@out@*/char *, size_t); -void json_att_dump(const struct gps_data_t *, /*@out@*/char *, size_t); -void json_subframe_dump(const struct gps_data_t *, /*@out@*/ char buf[], size_t); -void json_device_dump(const struct gps_device_t *, /*@out@*/char *, size_t); -void json_watch_dump(const struct policy_t *, /*@out@*/char *, size_t); -int json_watch_read(const char *, /*@out@*/struct policy_t *, - /*@null@*/const char **); -int json_device_read(const char *, /*@out@*/struct devconfig_t *, - /*@null@*/const char **); -void json_version_dump(/*@out@*/char *, size_t); -void json_aivdm_dump(const struct ais_t *, /*@null@*/const char *, bool, - /*@out@*/char *, size_t); + const struct policy_t *, char *, size_t); +void json_noise_dump(const struct gps_data_t *, char *, size_t); +void json_sky_dump(const struct gps_data_t *, char *, size_t); +void json_att_dump(const struct gps_data_t *, char *, size_t); +void json_subframe_dump(const struct gps_data_t *, char buf[], size_t); +void json_device_dump(const struct gps_device_t *, char *, size_t); +void json_watch_dump(const struct policy_t *, char *, size_t); +int json_watch_read(const char *, struct policy_t *, + const char **); +int json_device_read(const char *, struct devconfig_t *, + const char **); +void json_version_dump(char *, size_t); +void json_aivdm_dump(const struct ais_t *, const char *, bool, + char *, size_t); int json_rtcm2_read(const char *, char *, size_t, struct rtcm2_t *, - /*@null@*/const char **); + const char **); int json_rtcm3_read(const char *, char *, size_t, struct rtcm3_t *, - /*@null@*/const char **); + const char **); int json_ais_read(const char *, char *, size_t, struct ais_t *, - /*@null@*/const char **); + const char **); int libgps_json_unpack(const char *, struct gps_data_t *, - /*@null@*/const char **); + const char **); #ifdef __cplusplus } #endif |