diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2009-05-14 15:05:13 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2009-05-14 15:05:13 +0000 |
commit | a12c5145b3018243909e5a4a7dddec07acfc12cc (patch) | |
tree | 7f019cd2792ba08c656f26e41a560b9ff63fccef /usr.sbin/smtpd/mfa.c | |
parent | e245cb958238555c3ed4d9712ca1572bbe546483 (diff) |
use the nitems() macro where appropriate
ok gilles@, jacekm@
Diffstat (limited to 'usr.sbin/smtpd/mfa.c')
-rw-r--r-- | usr.sbin/smtpd/mfa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/mfa.c b/usr.sbin/smtpd/mfa.c index 4e3665c86cc..8095394af91 100644 --- a/usr.sbin/smtpd/mfa.c +++ b/usr.sbin/smtpd/mfa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfa.c,v 1.24 2009/04/28 23:11:25 gilles Exp $ */ +/* $OpenBSD: mfa.c,v 1.25 2009/05/14 15:05:12 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -347,8 +347,8 @@ mfa(struct smtpd *env) signal(SIGPIPE, SIG_IGN); signal(SIGHUP, SIG_IGN); - config_pipes(env, peers, 4); - config_peers(env, peers, 4); + config_pipes(env, peers, nitems(peers)); + config_peers(env, peers, nitems(peers)); mfa_setup_events(env); event_dispatch(); |