summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtp.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/smtp.c
parente245cb958238555c3ed4d9712ca1572bbe546483 (diff)
use the nitems() macro where appropriate
ok gilles@, jacekm@
Diffstat (limited to 'usr.sbin/smtpd/smtp.c')
-rw-r--r--usr.sbin/smtpd/smtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/smtp.c b/usr.sbin/smtpd/smtp.c
index 85f668395af..f1f9de3e9e8 100644
--- a/usr.sbin/smtpd/smtp.c
+++ b/usr.sbin/smtpd/smtp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp.c,v 1.44 2009/05/10 11:29:40 jacekm Exp $ */
+/* $OpenBSD: smtp.c,v 1.45 2009/05/14 15:05:12 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -620,8 +620,8 @@ smtp(struct smtpd *env)
signal(SIGPIPE, SIG_IGN);
signal(SIGHUP, SIG_IGN);
- config_pipes(env, peers, 5);
- config_peers(env, peers, 5);
+ config_pipes(env, peers, nitems(peers));
+ config_peers(env, peers, nitems(peers));
smtp_setup_events(env);
event_dispatch();