summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/control.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2009-05-14 15:05:13 +0000
committerEric Faurot <eric@cvs.openbsd.org>2009-05-14 15:05:13 +0000
commita12c5145b3018243909e5a4a7dddec07acfc12cc (patch)
tree7f019cd2792ba08c656f26e41a560b9ff63fccef /usr.sbin/smtpd/control.c
parente245cb958238555c3ed4d9712ca1572bbe546483 (diff)
use the nitems() macro where appropriate
ok gilles@, jacekm@
Diffstat (limited to 'usr.sbin/smtpd/control.c')
-rw-r--r--usr.sbin/smtpd/control.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c
index b12c2e1ee92..af8dde4339d 100644
--- a/usr.sbin/smtpd/control.c
+++ b/usr.sbin/smtpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.24 2009/05/09 20:04:36 jacekm Exp $ */
+/* $OpenBSD: control.c,v 1.25 2009/05/14 15:05:12 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -165,8 +165,8 @@ control(struct smtpd *env)
TAILQ_INIT(&ctl_conns);
- config_pipes(env, peers, 5);
- config_peers(env, peers, 5);
+ config_pipes(env, peers, nitems(peers));
+ config_peers(env, peers, nitems(peers));
control_listen(env);
event_dispatch();
control_shutdown();