summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/makemap.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2018-06-16 19:41:27 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2018-06-16 19:41:27 +0000
commit54ded09ce9873512573ad9719d28fe777d558743 (patch)
tree26657746072d784e3d974391f1ab0ccc12088cf8 /usr.sbin/smtpd/makemap.c
parent393cdf9323082bb8e062484adf0ba5393916e0a5 (diff)
rework the table API so that it takes a struct smtpd * context in parameter
of functions creating, looking up or destroying tables. this is a first step in cleaning up parse.y so it doesn't have side effects outside of parse_config(), bringing nothing but making code cleaner. ok millert@
Diffstat (limited to 'usr.sbin/smtpd/makemap.c')
-rw-r--r--usr.sbin/smtpd/makemap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/makemap.c b/usr.sbin/smtpd/makemap.c
index d2ffeff8407..d4c34479404 100644
--- a/usr.sbin/smtpd/makemap.c
+++ b/usr.sbin/smtpd/makemap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: makemap.c,v 1.69 2018/05/31 21:06:12 gilles Exp $ */
+/* $OpenBSD: makemap.c,v 1.70 2018/06/16 19:41:26 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -448,7 +448,7 @@ conf_aliases(char *cfgpath)
if (parse_config(env, cfgpath, 0))
exit(1);
- table = table_find("aliases", NULL);
+ table = table_find(env, "aliases", NULL);
if (table == NULL)
return (PATH_ALIASES);