diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-01-04 14:46:15 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-01-04 14:46:15 +0000 |
commit | 1ed47f71e12b7f875d07adbda23b3eaade832151 (patch) | |
tree | 0205e1756910f6fc788792b3a4b8ebf2f73db379 /usr.sbin/smtpd/mfa.c | |
parent | d3f71e83aa457c3da879a748802d457091a47c5f (diff) |
cleanup; ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/mfa.c')
-rw-r--r-- | usr.sbin/smtpd/mfa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/mfa.c b/usr.sbin/smtpd/mfa.c index 18d6fcc7d21..975d125ac7c 100644 --- a/usr.sbin/smtpd/mfa.c +++ b/usr.sbin/smtpd/mfa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfa.c,v 1.6 2009/01/04 00:58:59 gilles Exp $ */ +/* $OpenBSD: mfa.c,v 1.7 2009/01/04 14:46:14 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -30,7 +30,7 @@ #include <pwd.h> #include <stdio.h> #include <stdlib.h> -#include <strings.h> +#include <string.h> #include <unistd.h> #include "smtpd.h" @@ -45,7 +45,7 @@ void mfa_disable_events(struct smtpd *); void mfa_timeout(int, short, void *); int mfa_check_rcpt(struct smtpd *, struct path *, struct sockaddr_storage *); -int mfa_check_source(struct smtpd *, struct map *, struct sockaddr_storage *); +int mfa_check_source(struct map *, struct sockaddr_storage *); int mfa_match_mask(struct sockaddr_storage *, struct netaddr *); void @@ -379,7 +379,7 @@ mfa_check_rcpt(struct smtpd *env, struct path *path, struct sockaddr_storage *ss struct mapel *me; TAILQ_FOREACH(r, env->sc_rules, r_entry) { - if (! mfa_check_source(env, r->r_sources, ss)) + if (! mfa_check_source(r->r_sources, ss)) continue; log_debug("client authorized"); @@ -409,7 +409,7 @@ mfa_check_rcpt(struct smtpd *env, struct path *path, struct sockaddr_storage *ss } int -mfa_check_source(struct smtpd *env, struct map *map, struct sockaddr_storage *ss) +mfa_check_source(struct map *map, struct sockaddr_storage *ss) { struct mapel *me; |