From: Alan T. DeKok Date: Fri, 2 Jun 2017 18:55:17 +0000 (-0400) Subject: ifdef out the whole function... X-Git-Tag: release_3_0_15~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9535aec5edbb65892a8137737201f9fdf8bf71e5;p=thirdparty%2Ffreeradius-server.git ifdef out the whole function... --- diff --git a/src/modules/rlm_soh/rlm_soh.c b/src/modules/rlm_soh/rlm_soh.c index b0e0dfb68d1..11ab67b9ef4 100644 --- a/src/modules/rlm_soh/rlm_soh.c +++ b/src/modules/rlm_soh/rlm_soh.c @@ -120,9 +120,9 @@ static int mod_bootstrap(CONF_SECTION *conf, void *instance) return 0; } +#ifdef WITH_DHCP static rlm_rcode_t CC_HINT(nonnull) mod_post_auth(void *instance, REQUEST *request) { -#ifdef WITH_DHCP int rcode; VALUE_PAIR *vp; rlm_soh_t *inst = instance; @@ -183,9 +183,9 @@ static rlm_rcode_t CC_HINT(nonnull) mod_post_auth(void *instance, REQUEST *reque } return RLM_MODULE_OK; } -#endif return RLM_MODULE_NOOP; } +#endif static rlm_rcode_t CC_HINT(nonnull) mod_authorize(UNUSED void * instance, REQUEST *request) { @@ -219,6 +219,8 @@ module_t rlm_soh = { .bootstrap = mod_bootstrap, .methods = { [MOD_AUTHORIZE] = mod_authorize, +#ifdef WITH_DHCP [MOD_POST_AUTH] = mod_post_auth +#endif }, };