summaryrefslogtreecommitdiff
path: root/gpsmon.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 /gpsmon.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 'gpsmon.c')
-rw-r--r--gpsmon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gpsmon.c b/gpsmon.c
index ff2a54dd..eee5e4d8 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -20,7 +20,6 @@
#include <stdarg.h>
#include <time.h>
#include <math.h>
-#include <sys/time.h> /* expected to declare pselect(2) a la SuS */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/select.h>
@@ -1492,7 +1491,7 @@ int main(int argc, char **argv)
explanation = NULL;
switch (bailout) {
case TERM_SELECT_FAILED:
- explanation = "pselect(2) failed\n";
+ explanation = "I/O wait on device failed\n";
break;
case TERM_DRIVER_SWITCH:
explanation = "Driver type switch failed\n";