diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-12-19 19:13:20 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-12-19 19:13:20 -0600 |
commit | b539ea2a382a13440d2cd6bb7072eb5fe1299299 (patch) | |
tree | 15da1acdea5e8803d6ba7596caa39ecebbc9e729 /res/res_config_ldap.c | |
parent | ee62652e2d8d0ce23693d879b8feadb095ffb31a (diff) | |
parent | d6b2f457d97abf56323414cb2faa404a978eda08 (diff) |
Merge "Remove constant conditionals (dead-code)." into 13
Diffstat (limited to 'res/res_config_ldap.c')
-rw-r--r-- | res/res_config_ldap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_config_ldap.c b/res/res_config_ldap.c index a21aa31a8..c03b84967 100644 --- a/res/res_config_ldap.c +++ b/res/res_config_ldap.c @@ -311,8 +311,10 @@ static struct ast_variable *realtime_ldap_entry_to_var(struct ldap_table_config BerElement *ber = NULL; struct ast_variable *var = NULL; struct ast_variable *prev = NULL; +#if 0 int is_delimited = 0; int i = 0; +#endif char *ldap_attribute_name; struct berval *value; int pos = 0; @@ -340,6 +342,7 @@ static struct ast_variable *realtime_ldap_entry_to_var(struct ldap_table_config ast_debug(2, "md5: %s\n", valptr); } if (valptr) { +#if 0 /* ok, so looping through all delimited values except the last one (not, last character is not delimited...) */ if (is_delimited) { i = 0; @@ -360,6 +363,7 @@ static struct ast_variable *realtime_ldap_entry_to_var(struct ldap_table_config i++; } } +#endif /* for the last delimited value or if the value is not delimited: */ if (prev) { prev->next = ast_variable_new(attribute_name, &valptr[pos], table_config->table_name); |