From 94423280f0d028b9069f707ddb2f1e1c76ee88a7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 2 Jun 2010 15:50:37 +0100 Subject: [PATCH] auth: Removed USERDB_STATIC macro. It's always built anyway. --HG-- branch : HEAD --- configure.in | 8 +------- src/auth/userdb-static.c | 7 ------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/configure.in b/configure.in index e0772d2246..860f35beaa 100644 --- a/configure.in +++ b/configure.in @@ -258,7 +258,6 @@ dnl always enable all of the passbs and userdbs that don't require extra libs want_passwd=yes want_passwd_file=yes want_checkpassword=yes -want_static_userdb=yes want_prefetch_userdb=yes AC_ISC_POSIX @@ -1746,12 +1745,7 @@ passdb="" not_userdb="" not_passdb="" -if test $want_static_userdb != no; then - AC_DEFINE(USERDB_STATIC,, Build with static userdb support) - userdb="$userdb static" -else - not_userdb="$not_userdb static" -fi +userdb="$userdb static" if test $want_prefetch_userdb != no; then AC_DEFINE(USERDB_PREFETCH,, Build with prefetch userdb support) diff --git a/src/auth/userdb-static.c b/src/auth/userdb-static.c index 84ab1476cc..b570aa993b 100644 --- a/src/auth/userdb-static.c +++ b/src/auth/userdb-static.c @@ -122,8 +122,6 @@ void userdb_static_template_export(struct userdb_static_template *tmpl, } } -#ifdef USERDB_STATIC - struct static_context { userdb_callback_t *callback, *old_callback; void *old_context; @@ -242,8 +240,3 @@ struct userdb_module_interface userdb_static = { NULL, NULL }; -#else -struct userdb_module_interface userdb_static = { - .name = "static" -}; -#endif -- 2.47.3