From e2c7aac8a0a2598e943c8a33e070d51ee4a12c6b Mon Sep 17 00:00:00 2001 From: op Date: Tue, 14 May 2024 13:30:37 +0000 Subject: [PATCH] remove no-op methods from table_getpwnam; ok gilles@ --- usr.sbin/smtpd/table_getpwnam.c | 29 ++++------------------------- 1 file 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 @@ -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, }; @@ -51,24 +48,6 @@ table_getpwnam_config(struct table *table) return 1; } -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) -- 2.20.1