diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-01-14 21:14:00 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-01-14 21:14:00 +0000 |
commit | e0c835160b9ff11c17314907b11e4a992f2050eb (patch) | |
tree | 0a41a0a6f4089a04867234605efdffb9ce4276ee | |
parent | 3ebde669a98bf74181d0a5364e5414e45ba7d068 (diff) | |
download | gpsd-e0c835160b9ff11c17314907b11e4a992f2050eb.tar.gz |
Eliminate a getdtablesize() use.
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; /* |