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_core.c | |
parent | 82cd8cd019dec313938cba222871d32dbe5d449b (diff) | |
download | gpsd-34f69cc5d21caffe643a7faa9c045979a40cc792.tar.gz |
Magic-number elimination.
All three exports work.
Diffstat (limited to 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgps_core.c b/libgps_core.c index e6c85824..25600ea3 100644 --- a/libgps_core.c +++ b/libgps_core.c @@ -217,11 +217,11 @@ int gps_mainloop(struct gps_data_t *gpsdata, int timeout, /*@ -usedef -compdef -uniondef @*/ #ifdef SHM_EXPORT_ENABLE - if ((intptr_t)(gpsdata->gps_fd) == -1) + if ((intptr_t)(gpsdata->gps_fd) == SHM_PSEUDO_FD) status = gps_shm_mainloop(gpsdata, timeout, hook); #endif /* SHM_EXPORT_ENABLE */ #ifdef DBUS_EXPORT_ENABLE - if ((intptr_t)(gpsdata->gps_fd) == -2) + if ((intptr_t)(gpsdata->gps_fd) == DBUS_PSEUDO_FD) status = gps_dbus_mainloop(gpsdata, timeout, hook); #endif /* DBUS_EXPORT_ENABLE */ #ifdef SOCKET_EXPORT_ENABLE |