diff options
author | 2018-12-27 09:30:29 +0000 | |
---|---|---|
committer | 2018-12-27 09:30:29 +0000 | |
commit | 9a2428ac8f9eeb51f3d6df241a525f2af69d86c0 (patch) | |
tree | 4c117174b73ef7aa6b122591e0b3189a5feaa8b8 /usr.sbin/smtpd/table_getpwnam.c | |
parent | change the close() method to take the table pointer (diff) | |
download | wireguard-openbsd-9a2428ac8f9eeb51f3d6df241a525f2af69d86c0.tar.xz wireguard-openbsd-9a2428ac8f9eeb51f3d6df241a525f2af69d86c0.zip |
pass the table pointer to the lookup()/fecth() methods
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/table_getpwnam.c')
-rw-r--r-- | usr.sbin/smtpd/table_getpwnam.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/table_getpwnam.c b/usr.sbin/smtpd/table_getpwnam.c index 45a377aaf65..abc4fc8f8d2 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.10 2018/12/27 08:57:03 eric Exp $ */ +/* $OpenBSD: table_getpwnam.c,v 1.11 2018/12/27 09:30:29 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade <gilles@poolp.org> @@ -41,7 +41,7 @@ static int table_getpwnam_config(struct table *); static int table_getpwnam_update(struct table *); static int table_getpwnam_open(struct table *); -static int table_getpwnam_lookup(void *, enum table_service, const char *, +static int table_getpwnam_lookup(struct table *, enum table_service, const char *, char **); static void table_getpwnam_close(struct table *); @@ -83,7 +83,7 @@ table_getpwnam_close(struct table *table) } static int -table_getpwnam_lookup(void *hdl, enum table_service kind, const char *key, +table_getpwnam_lookup(struct table *table, enum table_service kind, const char *key, char **dst) { struct passwd *pw; |