summaryrefslogtreecommitdiff
path: root/gnu/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-08-12 20:50:44 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-08-12 20:50:44 +0000
commit7d11df73d837d0059d8c448e1538ed4f0561fa4c (patch)
treed04bd0da06d5a20065982510b29c6b5ff802b2cc /gnu/lib
parent236ee341c1bccfcf542e5a3bf0d609cb08308b50 (diff)
Don't tell people to use FD_SETSIZE as the first argument to select().
Diffstat (limited to 'gnu/lib')
-rw-r--r--gnu/lib/libreadline/examples/excallback.c2
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);
}