From: Kevin P. Fleming Date: Tue, 23 Aug 2005 15:33:27 +0000 (+0000) Subject: formatting fixes and compile fix for FreeBSD (issue #5004) X-Git-Tag: 1.2.0-beta1~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98563fdb73d06ae0dc37280bd11c415d0f8dc592;p=thirdparty%2Fasterisk.git formatting fixes and compile fix for FreeBSD (issue #5004) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6381 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_features.c b/res/res_features.c index 8fac01e805..35fcec02e8 100755 --- a/res/res_features.c +++ b/res/res_features.c @@ -974,7 +974,7 @@ static int ast_feature_interpret(struct ast_channel *chan, struct ast_channel *p else ast_copy_flags(&features, &(config->features_callee), AST_FLAGS_ALL); ast_log(LOG_DEBUG, "Feature interpret: chan=%s, peer=%s, sense=%d, features=%d\n", chan->name, peer->name, sense, features.flags); - for (x=0;xfeatures_caller), builtin_features[x].feature_mask)) { if (ast_test_flag(builtin_features + x, AST_FEATURE_FLAG_NEEDSDTMF)) ast_set_flag(config, AST_BRIDGE_DTMF_CHANNEL_0); @@ -1986,13 +1987,13 @@ static int load_config(void) var = ast_variable_browse(cfg, "applicationmap"); while(var) { char *tmp_val=strdup(var->value); + char *exten, *party=NULL, *app=NULL, *app_args=NULL; if (!tmp_val) { ast_log(LOG_ERROR, "res_features: strdup failed"); continue; } - char *exten, *party=NULL, *app=NULL, *app_args=NULL; exten=strsep(&tmp_val,","); if (exten) party=strsep(&tmp_val,",");