summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-01-14 21:14:00 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-01-14 21:14:00 +0000
commite0c835160b9ff11c17314907b11e4a992f2050eb (patch)
tree0a41a0a6f4089a04867234605efdffb9ce4276ee
parent3ebde669a98bf74181d0a5364e5414e45ba7d068 (diff)
downloadgpsd-e0c835160b9ff11c17314907b11e4a992f2050eb.tar.gz
Eliminate a getdtablesize() use.
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 2ea7f096..908c1439 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -594,7 +594,7 @@ int main(int argc, char *argv[])
/* accept and execute commands for all clients */
need_gps = 0;
- for (fd = 0; fd < getdtablesize(); fd++) {
+ for (fd = 0; fd < nfds; fd++) {
if (fd == msock || fd == session->gNMEAdata.gps_fd)
continue;
/*