summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2018-12-28 13:47:55 +0000
committerEric Faurot <eric@cvs.openbsd.org>2018-12-28 13:47:55 +0000
commitf36f0a3d8943186f8e65735ee022234164f48074 (patch)
treeff30199ab87593f6a66b4147457f1fd164e2ea2e /usr.sbin/smtpd
parent1c24bd7bf28cc0b803fe3f2f6ff857b9caaf5956 (diff)
simplify code
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/table.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/usr.sbin/smtpd/table.c b/usr.sbin/smtpd/table.c
index 0526faab2f8..5e646bc0233 100644
--- a/usr.sbin/smtpd/table.c
+++ b/usr.sbin/smtpd/table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: table.c,v 1.45 2018/12/28 11:40:29 eric Exp $ */
+/* $OpenBSD: table.c,v 1.46 2018/12/28 13:47:54 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -224,13 +224,6 @@ table_create(struct smtpd *conf, const char *backend, const char *name,
t = xcalloc(1, sizeof(*t));
t->t_backend = tb;
- /* XXX */
- /*
- * until people forget about it, "file" really means "static"
- */
- if (!strcmp(backend, "file"))
- backend = "static";
-
if (config) {
if (strlcpy(t->t_config, config, sizeof t->t_config)
>= sizeof t->t_config)
@@ -238,7 +231,7 @@ table_create(struct smtpd *conf, const char *backend, const char *name,
t->t_config);
}
- if (strcmp(backend, "static") != 0)
+ if (strcmp(tb->name, "static") != 0)
t->t_type = T_DYNAMIC;
if (name == NULL)