diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-05 04:01:28 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-05 04:01:28 +0000 |
commit | 0d92cdf11ef27d371ff7efedc502bd51e194a4e6 (patch) | |
tree | 72b8fef20284172594760d09a4f1dd87861b8ff1 /apps/app_exec.c | |
parent | 170557257a8018b134207563ae5d85c467fa28b9 (diff) |
Make this module build on my mac
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@78142 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_exec.c')
-rw-r--r-- | apps/app_exec.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/app_exec.c b/apps/app_exec.c index 2423580fe..73d534a1b 100644 --- a/apps/app_exec.c +++ b/apps/app_exec.c @@ -160,38 +160,38 @@ static int execif_exec(struct ast_channel *chan, void *data) AST_APP_ARG(remainder); ); AST_DECLARE_APP_ARGS(apps, - AST_APP_ARG(true); - AST_APP_ARG(false); + AST_APP_ARG(t); + AST_APP_ARG(f); ); char *parse = ast_strdupa(data); AST_NONSTANDARD_APP_ARGS(expr, parse, '?'); AST_NONSTANDARD_APP_ARGS(apps, expr.remainder, ':'); - if (apps.true && (truedata = strchr(apps.true, '('))) { + if (apps.t && (truedata = strchr(apps.t, '('))) { *truedata++ = '\0'; if ((end = strrchr(truedata, ')'))) *end = '\0'; } - if (apps.false && (falsedata = strchr(apps.false, '('))) { + if (apps.f && (falsedata = strchr(apps.f, '('))) { *falsedata++ = '\0'; if ((end = strrchr(falsedata, ')'))) *end = '\0'; } if (pbx_checkcondition(expr.expr)) { - if (!ast_strlen_zero(apps.true) && (app = pbx_findapp(apps.true))) { + if (!ast_strlen_zero(apps.t) && (app = pbx_findapp(apps.t))) { res = pbx_exec(chan, app, S_OR(truedata, "")); } else { - ast_log(LOG_WARNING, "Could not find application! (%s)\n", apps.true); + ast_log(LOG_WARNING, "Could not find application! (%s)\n", apps.t); res = -1; } } else { - if (!ast_strlen_zero(apps.false) && (app = pbx_findapp(apps.false))) { + if (!ast_strlen_zero(apps.f) && (app = pbx_findapp(apps.f))) { res = pbx_exec(chan, app, S_OR(falsedata, "")); } else { - ast_log(LOG_WARNING, "Could not find application! (%s)\n", apps.false); + ast_log(LOG_WARNING, "Could not find application! (%s)\n", apps.f); res = -1; } } |