summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-09 18:13:24 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-09 18:13:24 -0500
commit2c9e5b2eb52fb2d6eee3f8fc50ee916e68ee017a (patch)
tree319097a2c8197088687bd9a8000863c20b011239 /gpsctl.c
parent5242310d708875cba0d3042917a0c68ee6d267e7 (diff)
downloadgpsd-2c9e5b2eb52fb2d6eee3f8fc50ee916e68ee017a.tar.gz
splint cleanup. All regressiion tests pass.
Diffstat (limited to 'gpsctl.c')
-rw-r--r--gpsctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsctl.c b/gpsctl.c
index 4ff29caa..434be095 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -295,6 +295,7 @@ int main(int argc, char **argv)
break;
case 'R': /* remove the SHM export segment */
#ifdef SHM_EXPORT_ENABLE
+ /*@-nullpass@*/
status = shmget(GPSD_KEY, 0, 0);
if (status == -1) {
gpsd_report(&context.errout, LOG_WARN,
@@ -309,9 +310,9 @@ int main(int argc, char **argv)
exit(1);
}
}
+ /*@+nullpass@*/
exit(0);
#endif /* SHM_EXPORT_ENABLE */
- break;
case 'T': /* set the timeout on packet recognition */
timeout = (unsigned)atoi(optarg);
explicit_timeout = true;