summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2018-12-26 13:23:04 -0500
committerEric S. Raymond <esr@thyrsus.com>2018-12-26 13:23:04 -0500
commit5517175ed53b877720fdf5a1a4085386b40c4590 (patch)
tree31c1ce53dea117cfb36a1e7d679cb785b32abdf8 /gpsd.c
parentc9e81aabcf2f5c6886be1fd0e859ceb63470e06f (diff)
downloadgpsd-5517175ed53b877720fdf5a1a4085386b40c4590.tar.gz
Eliminate effectively all uses of struct timeval.
Outide of one Mac portability shim, anyway. Associated select(2) calls become pselect(2) calls.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd.c b/gpsd.c
index 68cacafd..6d3c14de 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -23,7 +23,7 @@
#include <sys/stat.h>
#include <sys/types.h>
-#include <sys/time.h> /* for select() */
+#include <sys/time.h> /* for pselect() */
#include <sys/select.h>
#include <stdio.h>
#include <stdint.h> /* for uint32_t, etc. */
@@ -735,7 +735,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 select() it */
+ /* it is a /dev/ppsX, no need to pselect() it */
return true;
}
FD_SET(device->gpsdata.gps_fd, &all_fds);