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_dbus.c | |
parent | 82cd8cd019dec313938cba222871d32dbe5d449b (diff) | |
download | gpsd-34f69cc5d21caffe643a7faa9c045979a40cc792.tar.gz |
Magic-number elimination.
All three exports work.
Diffstat (limited to 'libgps_dbus.c')
-rw-r--r-- | libgps_dbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgps_dbus.c b/libgps_dbus.c index c35afad1..79bddced 100644 --- a/libgps_dbus.c +++ b/libgps_dbus.c @@ -125,9 +125,9 @@ int gps_dbus_open(struct gps_data_t *gpsdata) } #ifndef USE_QT - gpsdata->gps_fd = -2; + gpsdata->gps_fd = DBUS_PSEUDO_FD; #else - gpsdata->gps_fd = (void *)(intptr_t)-2; + gpsdata->gps_fd = (void *)(intptr_t)DBUS_PSEUDO_FD; #endif /* USE_QT */ share_gpsdata = gpsdata; return 0; |