diff options
author | Omar Polo <op@cvs.openbsd.org> | 2024-05-14 13:30:38 +0000 |
---|---|---|
committer | Omar Polo <op@cvs.openbsd.org> | 2024-05-14 13:30:38 +0000 |
commit | 5c43352668591964d41eef9a7267a0322cba1c18 (patch) | |
tree | 3995c8a569f0518037f5f4db8dcbc7c825eb0749 /usr.sbin | |
parent | a10c51db88d86672e1c4c48c643f8e400f18ea2a (diff) |
remove no-op methods from table_getpwnam; ok gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/table_getpwnam.c | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/usr.sbin/smtpd/table_getpwnam.c b/usr.sbin/smtpd/table_getpwnam.c index 36e6adc710e..66920dc82db 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.15 2024/05/14 13:28:08 op Exp $ */ +/* $OpenBSD: table_getpwnam.c,v 1.16 2024/05/14 13:30:37 op Exp $ */ /* * Copyright (c) 2012 Gilles Chehade <gilles@poolp.org> @@ -23,11 +23,8 @@ /* getpwnam(3) backend */ 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(struct table *, enum table_service, const char *, char **); -static void table_getpwnam_close(struct table *); struct table_backend table_backend_getpwnam = { .name = "getpwnam", @@ -35,9 +32,9 @@ struct table_backend table_backend_getpwnam = { .config = table_getpwnam_config, .add = NULL, .dump = NULL, - .open = table_getpwnam_open, - .update = table_getpwnam_update, - .close = table_getpwnam_close, + .open = NULL, + .update = NULL, + .close = NULL, .lookup = table_getpwnam_lookup, .fetch = NULL, }; @@ -52,24 +49,6 @@ table_getpwnam_config(struct table *table) } static int -table_getpwnam_update(struct table *table) -{ - return 1; -} - -static int -table_getpwnam_open(struct table *table) -{ - return 1; -} - -static void -table_getpwnam_close(struct table *table) -{ - return; -} - -static int table_getpwnam_lookup(struct table *table, enum table_service kind, const char *key, char **dst) { |