Skip to content

Commit

Permalink
found is a bool, not a component
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jun 6, 2016
1 parent f239355 commit bd827b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/modules.c
Expand Up @@ -942,7 +942,8 @@ static int load_component_section(CONF_SECTION *cs, rlm_components_t comp)

static int virtual_server_compile(CONF_SECTION *cs)
{
rlm_components_t comp, found;
rlm_components_t comp;
bool found;
char const *name = cf_section_name2(cs);

cf_log_info(cs, "server %s { # from file %s",
Expand All @@ -952,7 +953,7 @@ static int virtual_server_compile(CONF_SECTION *cs)
* Loop over all of the known components, finding their
* configuration section, and loading it.
*/
found = 0;
found = false;
for (comp = 0; comp < MOD_COUNT; ++comp) {
CONF_SECTION *subcs;

Expand Down Expand Up @@ -991,7 +992,7 @@ static int virtual_server_compile(CONF_SECTION *cs)
return -1;
}

found = 1;
found = true;
} /* loop over components */

/*
Expand Down

0 comments on commit bd827b5

Please sign in to comment.