Skip to content

Commit

Permalink
ifdef out the whole function...
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jun 2, 2017
1 parent 55a2f70 commit 9535aec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/rlm_soh/rlm_soh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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
},
};

0 comments on commit 9535aec

Please sign in to comment.