diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-30 06:30:42 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-30 06:30:42 -0400 |
commit | 34f69cc5d21caffe643a7faa9c045979a40cc792 (patch) | |
tree | ca21d9c3aa19c30b716c9253447c5e34f1b360e7 /libgps_shm.c | |
parent | 82cd8cd019dec313938cba222871d32dbe5d449b (diff) | |
download | gpsd-34f69cc5d21caffe643a7faa9c045979a40cc792.tar.gz |
Magic-number elimination.
All three exports work.
Diffstat (limited to 'libgps_shm.c')
-rw-r--r-- | libgps_shm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgps_shm.c b/libgps_shm.c index 7704730a..4ba4d309 100644 --- a/libgps_shm.c +++ b/libgps_shm.c @@ -59,9 +59,9 @@ int gps_shm_open(/*@out@*/struct gps_data_t *gpsdata) return -2; } #ifndef USE_QT - gpsdata->gps_fd = -1; + gpsdata->gps_fd = SHM_PSEUDO_FD; #else - gpsdata->gps_fd = (void *)(intptr_t)-1; + gpsdata->gps_fd = (void *)(intptr_t)SHM_PSEUDO_FD; #endif /* USE_QT */ return 0; } |