summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpctl.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-07-02 17:00:06 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-07-02 17:00:06 +0000
commit8d2124f0c3865afc766782f0262d603bd9fdd549 (patch)
treed90eb4664412823443c3c08a31cf1a10c66f70b8 /usr.sbin/smtpd/smtpctl.c
parent63459499c001e32644c0a796515e67c91964a158 (diff)
Lookup queue and scheduler backends by name, rather than enum.
Add a command-line option to specify the backend to use at runtime. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpctl.c')
-rw-r--r--usr.sbin/smtpd/smtpctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c
index 0926c5f7143..cd06a80bf0f 100644
--- a/usr.sbin/smtpd/smtpctl.c
+++ b/usr.sbin/smtpd/smtpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpctl.c,v 1.81 2012/06/20 20:45:23 eric Exp $ */
+/* $OpenBSD: smtpctl.c,v 1.82 2012/07/02 17:00:05 eric Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -80,7 +80,7 @@ setup_env(struct smtpd *smtpd)
if ((env->sc_pw = getpwnam(SMTPD_USER)) == NULL)
errx(1, "unknown user %s", SMTPD_USER);
- env->sc_queue = queue_backend_lookup(QT_FS);
+ env->sc_queue = queue_backend_lookup("fs");
if (env->sc_queue == NULL)
errx(1, "could not find queue backend");