summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gpsd.c b/gpsd.c
index e8d02e3e..782df039 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1999,12 +1999,7 @@ int main(int argc, char *argv[])
#ifdef SHM_EXPORT_ENABLE
/* create the shared segment as root so readers can't mess with it */
- if (!shm_acquire(&context)) {
- gpsd_report(&context.errout, LOG_ERROR,
- "shared-segment creation failed,\n");
- } else
- gpsd_report(&context.errout, LOG_PROG,
- "shared-segment creation succeeded,\n");
+ (void)shm_acquire(&context);
#endif /* SHM_EXPORT_ENABLE */
/*