[Asterisk-cvs] asterisk/apps app_while.c,1.1,1.2

markster at lists.digium.com markster at lists.digium.com
Mon Dec 27 08:13:44 CST 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv4817/apps

Modified Files:
	app_while.c 
Log Message:
Fix for FreeBSD portability


Index: app_while.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_while.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- app_while.c	24 Dec 2004 01:18:13 -0000	1.1
+++ app_while.c	27 Dec 2004 13:08:45 -0000	1.2
@@ -3,7 +3,7 @@
  *
  * While Loop and ExecIf Implementations
  * 
- * Copyright Anthony Minessale <anthmct at yahoo.com>
+ * Copyright 2004, Anthony Minessale <anthmct at yahoo.com>
  *
  * Anthony Minessale <anthmct at yahoo.com>
  *
@@ -56,13 +56,13 @@
 
 static int execif_exec(struct ast_channel *chan, void *data) {
 	int res=0;
-    struct localuser *u;
-	LOCAL_USER_ADD(u);
+	struct localuser *u;
 	char *myapp = NULL;
 	char *mydata = NULL;
 	char *expr = NULL;
 	struct ast_app *app = NULL;
 
+	LOCAL_USER_ADD(u);
 	expr = ast_strdupa((char *) data);
 	if ((myapp = strchr(expr,'|'))) {
 		*myapp = '\0';




More information about the svn-commits mailing list