diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-09 18:13:24 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-09 18:13:24 -0500 |
commit | 2c9e5b2eb52fb2d6eee3f8fc50ee916e68ee017a (patch) | |
tree | 319097a2c8197088687bd9a8000863c20b011239 /gpsctl.c | |
parent | 5242310d708875cba0d3042917a0c68ee6d267e7 (diff) | |
download | gpsd-2c9e5b2eb52fb2d6eee3f8fc50ee916e68ee017a.tar.gz |
splint cleanup. All regressiion tests pass.
Diffstat (limited to 'gpsctl.c')
-rw-r--r-- | gpsctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |