summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypldap/yp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ypldap/yp.c')
-rw-r--r--usr.sbin/ypldap/yp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ypldap/yp.c b/usr.sbin/ypldap/yp.c
index e461136..3676245 100644
--- a/usr.sbin/ypldap/yp.c
+++ b/usr.sbin/ypldap/yp.c
@@ -83,10 +83,10 @@ void
yp_enable_events(void)
{
int i;
- extern fd_set svc_fdset;
+ extern fd_set svc_fdset;
struct yp_event *ye;
- for (i = 0; i < getdtablesize(); i++) {
+ for (i = 0; i < FD_SETSIZE; i++) {
if (FD_ISSET(i, &svc_fdset)) {
if ((ye = calloc(1, sizeof(*ye))) == NULL)
fatal(NULL);
OpenPOWER on IntegriCloud