summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2018-12-27 05:39:42 -0500
committerEric S. Raymond <esr@thyrsus.com>2018-12-27 05:39:42 -0500
commit1998c0301f6f9542bf5dd51e8d18f3d7f4e76023 (patch)
tree47b092141978039c773e4a4e9f992eab90ee340b /gpsd.c
parente81cfb77ab1a8de2e7cac6883e632124bcbe6f35 (diff)
downloadgpsd-1998c0301f6f9542bf5dd51e8d18f3d7f4e76023.tar.gz
Factor most uses of pselect(2) into a new utility function named 'nanowait'.
Also, remove sime header inclusions discovered to be unnecessary during the change.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gpsd.c b/gpsd.c
index 6d3c14de..fb148bef 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -23,8 +23,6 @@
#include <sys/stat.h>
#include <sys/types.h>
-#include <sys/time.h> /* for pselect() */
-#include <sys/select.h>
#include <stdio.h>
#include <stdint.h> /* for uint32_t, etc. */
#include <time.h>
@@ -735,7 +733,7 @@ static bool open_device( struct gps_device_t *device)
gpsd_log(&context.errout, LOG_INF,
"device %s activated\n", device->gpsdata.dev.path);
if ( PLACEHOLDING_FD == activated ) {
- /* it is a /dev/ppsX, no need to pselect() it */
+ /* it is a /dev/ppsX, no need to wait on it */
return true;
}
FD_SET(device->gpsdata.gps_fd, &all_fds);