summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/mfa.c
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-04-28 21:27:26 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-04-28 21:27:26 +0000
commit8b9d67d8d8e5ff63e3994a411c7425e3f711093e (patch)
tree421fa0b7f05405b664a654fd25e3706b98612b01 /usr.sbin/smtpd/mfa.c
parent3cd1555ad86e9f47c021f6a3721e5fccfbabc3d3 (diff)
let mta, mda, and mfa become idle - no functional change; ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/mfa.c')
-rw-r--r--usr.sbin/smtpd/mfa.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/usr.sbin/smtpd/mfa.c b/usr.sbin/smtpd/mfa.c
index d6158e0341c..5c1ba121714 100644
--- a/usr.sbin/smtpd/mfa.c
+++ b/usr.sbin/smtpd/mfa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfa.c,v 1.22 2009/04/27 16:15:21 jacekm Exp $ */
+/* $OpenBSD: mfa.c,v 1.23 2009/04/28 21:27:25 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -45,7 +45,6 @@ void mfa_dispatch_lka(int, short, void *);
void mfa_dispatch_control(int, short, void *);
void mfa_setup_events(struct smtpd *);
void mfa_disable_events(struct smtpd *);
-void mfa_timeout(int, short, void *);
void mfa_test_mail(struct smtpd *, struct message *);
void mfa_test_rcpt(struct smtpd *, struct message *);
@@ -284,29 +283,11 @@ mfa_shutdown(void)
void
mfa_setup_events(struct smtpd *env)
{
- struct timeval tv;
-
- evtimer_set(&env->sc_ev, mfa_timeout, env);
- tv.tv_sec = 3;
- tv.tv_usec = 0;
- evtimer_add(&env->sc_ev, &tv);
}
void
mfa_disable_events(struct smtpd *env)
{
- evtimer_del(&env->sc_ev);
-}
-
-void
-mfa_timeout(int fd, short event, void *p)
-{
- struct smtpd *env = p;
- struct timeval tv;
-
- tv.tv_sec = 3;
- tv.tv_usec = 0;
- evtimer_add(&env->sc_ev, &tv);
}
pid_t