summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-05-14 22:33:52 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-05-14 22:33:52 +0000
commit663592b7ceb86e53e3cf4e6fca72ecc19ef86a39 (patch)
tree2c8c9f7febcbbaa8dcc022e93f936ae694679464 /usr.sbin/ntpd
parent0a41f00c5bff3b74c52e4af1b44d3aaf9b8048be (diff)
PFD_MAX betterer than harcoded 1
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r--usr.sbin/ntpd/ntp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index 7393717d024..f27e42a4c15 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.67 2005/08/10 13:48:36 dtucker Exp $ */
+/* $OpenBSD: ntp.c,v 1.68 2006/05/14 22:33:51 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -184,7 +184,7 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *nconf)
pfd[PFD_PIPE_MAIN].fd = ibuf_main->fd;
pfd[PFD_PIPE_MAIN].events = POLLIN;
- i = 1;
+ i = PFD_MAX;
TAILQ_FOREACH(la, &conf->listen_addrs, entry) {
pfd[i].fd = la->fd;
pfd[i].events = POLLIN;