aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-04 17:49:20 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-04 17:49:20 +0000
commit066fef6a86d126791f86ed938f4c9ad9eb299a56 (patch)
treee8908066fd2741b51f6c348afd1217c9c56d54c7 /res
parentaf572c14ef216abe405947d7166a5a5d7d30196c (diff)
a small upgrade to the coding standard, and an update to the code that triggered the upgrade.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@63048 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_features.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/res/res_features.c b/res/res_features.c
index 7cc4686c4..a0df92447 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -1055,8 +1055,8 @@ static void ast_unregister_features(void)
AST_LIST_UNLOCK(&feature_list);
}
-/*! \brief find a feature by name */
-struct ast_call_feature *find_feature(char *name)
+/*! \brief find a call feature by name */
+struct ast_call_feature *ast_find_call_feature(char *name)
{
struct ast_call_feature *tmp;
@@ -1197,7 +1197,7 @@ static int ast_feature_interpret(struct ast_channel *chan, struct ast_channel *p
char *tok;
while ((tok = strsep(&tmp, "#")) != NULL) {
- feature = find_feature(tok);
+ feature = ast_find_call_feature(tok);
if (feature) {
/* Feature is up for consideration */
@@ -1241,7 +1241,7 @@ static void set_config_flags(struct ast_channel *chan, struct ast_channel *peer,
/* while we have a feature */
while ((tok = strsep(&tmp, "#"))) {
- if ((feature = find_feature(tok)) && ast_test_flag(feature, AST_FEATURE_FLAG_NEEDSDTMF)) {
+ if ((feature = ast_find_call_feature(tok)) && ast_test_flag(feature, AST_FEATURE_FLAG_NEEDSDTMF)) {
if (ast_test_flag(feature, AST_FEATURE_FLAG_BYCALLER))
ast_set_flag(config, AST_BRIDGE_DTMF_CHANNEL_0);
if (ast_test_flag(feature, AST_FEATURE_FLAG_BYCALLEE))
@@ -2580,7 +2580,7 @@ static int load_config(void)
continue;
}
- if ((feature = find_feature(var->name))) {
+ if ((feature = ast_find_call_feature(var->name))) {
ast_log(LOG_WARNING, "Dynamic Feature '%s' specified more than once!\n", var->name);
continue;
}