summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/table_getpwnam.c
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2014-07-08 13:49:09 +0000
committereric <eric@openbsd.org>2014-07-08 13:49:09 +0000
commitd6f2ac019abe1f0412218db1e8230b4b835ecbb7 (patch)
treeac8e9f8f0fac74fa8096c19f0a371adb5107815f /usr.sbin/smtpd/table_getpwnam.c
parentThis is bootblock code. Don't pull in uvm header files to deal with (diff)
downloadwireguard-openbsd-d6f2ac019abe1f0412218db1e8230b4b835ecbb7.tar.xz
wireguard-openbsd-d6f2ac019abe1f0412218db1e8230b4b835ecbb7.zip
Update the table API: lookup functions can take an optional parameters
dictionnary (currently not set). While there, add a helper for forking external backends, and remove unused table functions. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/table_getpwnam.c')
-rw-r--r--usr.sbin/smtpd/table_getpwnam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/table_getpwnam.c b/usr.sbin/smtpd/table_getpwnam.c
index f66effbf414..52e79c0d772 100644
--- a/usr.sbin/smtpd/table_getpwnam.c
+++ b/usr.sbin/smtpd/table_getpwnam.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: table_getpwnam.c,v 1.2 2013/05/24 17:03:14 eric Exp $ */
+/* $OpenBSD: table_getpwnam.c,v 1.3 2014/07/08 13:49:09 eric Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
@@ -40,7 +40,7 @@
static int table_getpwnam_config(struct table *);
static int table_getpwnam_update(struct table *);
static void *table_getpwnam_open(struct table *);
-static int table_getpwnam_lookup(void *, const char *, enum table_service,
+static int table_getpwnam_lookup(void *, struct dict *, const char *, enum table_service,
union lookup *);
static void table_getpwnam_close(void *);
@@ -81,7 +81,7 @@ table_getpwnam_close(void *hdl)
}
static int
-table_getpwnam_lookup(void *hdl, const char *key, enum table_service kind,
+table_getpwnam_lookup(void *hdl, struct dict *params, const char *key, enum table_service kind,
union lookup *lk)
{
struct passwd *pw;