summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-11 18:11:45 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-11 18:12:24 -0500
commit1b6b651d327efc7210a82ea6d7b48af7acb26c0d (patch)
tree3da4e7baa0d3bdd91a79566edf32290cf7448d7c /gpsctl.c
parent607fee7e4f751d6ac6a33af17c546e8095aa902f (diff)
downloadgpsd-1b6b651d327efc7210a82ea6d7b48af7acb26c0d.tar.gz
BSD compiler waening and splint cleanup.
Diffstat (limited to 'gpsctl.c')
-rw-r--r--gpsctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsctl.c b/gpsctl.c
index 1e62cb27..b0d78c34 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -296,7 +296,7 @@ int main(int argc, char **argv)
case 'R': /* remove the SHM export segment */
#ifdef SHM_EXPORT_ENABLE
/*@-nullpass@*/
- status = shmget(getenv("GPSD_SHM_KEY") ? atoi(getenv("GPSD_SHM_KEY")) : GPSD_KEY, 0, 0);
+ status = shmget(getenv("GPSD_SHM_KEY") ? (key_t)atoi(getenv("GPSD_SHM_KEY")) : (key_t)GPSD_KEY, 0, 0);
if (status == -1) {
gpsd_report(&context.errout, LOG_WARN,
"GPSD SHM segment does not exist.\n");