[asterisk-commits] russell: trunk r78142 - /trunk/apps/app_exec.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Aug 4 23:01:29 CDT 2007


Author: russell
Date: Sat Aug  4 23:01:28 2007
New Revision: 78142

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78142
Log:
Make this module build on my mac

Modified:
    trunk/apps/app_exec.c

Modified: trunk/apps/app_exec.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_exec.c?view=diff&rev=78142&r1=78141&r2=78142
==============================================================================
--- trunk/apps/app_exec.c (original)
+++ trunk/apps/app_exec.c Sat Aug  4 23:01:28 2007
@@ -160,38 +160,38 @@
 		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;
 		}
 	}




More information about the asterisk-commits mailing list