diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-12 20:50:44 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-08-12 20:50:44 +0000 |
commit | 7d11df73d837d0059d8c448e1538ed4f0561fa4c (patch) | |
tree | d04bd0da06d5a20065982510b29c6b5ff802b2cc | |
parent | 236ee341c1bccfcf542e5a3bf0d609cb08308b50 (diff) |
Don't tell people to use FD_SETSIZE as the first argument to select().
-rw-r--r-- | gnu/lib/libreadline/examples/excallback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/lib/libreadline/examples/excallback.c b/gnu/lib/libreadline/examples/excallback.c index ca03fc3dafd..c4588829954 100644 --- a/gnu/lib/libreadline/examples/excallback.c +++ b/gnu/lib/libreadline/examples/excallback.c @@ -121,7 +121,7 @@ main() FD_ZERO(&fds); FD_SET(fileno(stdin), &fds); - if( select(FD_SETSIZE, &fds, NULL, NULL, NULL) < 0) { + if( select(fileno(stdin) + 1, &fds, NULL, NULL, NULL) < 0) { perror("select"); exit(1); } |