diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-11 18:11:45 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-11 18:12:24 -0500 |
commit | 1b6b651d327efc7210a82ea6d7b48af7acb26c0d (patch) | |
tree | 3da4e7baa0d3bdd91a79566edf32290cf7448d7c /shmexport.c | |
parent | 607fee7e4f751d6ac6a33af17c546e8095aa902f (diff) | |
download | gpsd-1b6b651d327efc7210a82ea6d7b48af7acb26c0d.tar.gz |
BSD compiler waening and splint cleanup.
Diffstat (limited to 'shmexport.c')
-rw-r--r-- | shmexport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shmexport.c b/shmexport.c index d4dcf01d..c9fe87b1 100644 --- a/shmexport.c +++ b/shmexport.c @@ -34,7 +34,9 @@ PERMISSIONS bool shm_acquire(struct gps_context_t *context) /* initialize the shared-memory segment to be used for export */ { + /*@-nullpass@*/ int shmid = getenv("GPSD_SHM_KEY") ? atoi(getenv("GPSD_SHM_KEY")) : GPSD_KEY; + /*@+nullpass@*/ shmid = shmget((key_t)shmid, sizeof(struct gps_data_t), (int)(IPC_CREAT|0666)); if (shmid == -1) { |