[Asterisk-cvs] asterisk app.c,1.60,1.61 config.c,1.62,1.63

russell at lists.digium.com russell at lists.digium.com
Wed May 25 06:53:04 CDT 2005


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

Modified Files:
	app.c config.c 
Log Message:
various code cleanups (bug #4353)


Index: app.c
===================================================================
RCS file: /usr/cvsroot/asterisk/app.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- app.c	4 May 2005 15:26:03 -0000	1.60
+++ app.c	25 May 2005 10:57:15 -0000	1.61
@@ -271,7 +271,7 @@
 	if (!res) {
 		res = ast_waitfor(chan,100);
 		if (res > -1) {
-			for (ptr=digits;*ptr;*ptr++) {
+			for (ptr=digits; *ptr; ptr++) {
 				if (*ptr == 'w') {
 					res = ast_safe_sleep(chan, 500);
 					if (res) 

Index: config.c
===================================================================
RCS file: /usr/cvsroot/asterisk/config.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- config.c	8 May 2005 17:31:09 -0000	1.62
+++ config.c	25 May 2005 10:57:15 -0000	1.63
@@ -486,7 +486,7 @@
 				/* #exec </path/to/executable>
 				   We create a tmp file, then we #include it, then we delete it. */
 				if (do_exec) { 
-					snprintf(exec_file, sizeof(exec_file), "/var/tmp/exec.%ld.%ld", time(NULL), pthread_self());
+					snprintf(exec_file, sizeof(exec_file), "/var/tmp/exec.%ld.%ld", time(NULL), (long)pthread_self());
 					snprintf(cmd, sizeof(cmd), "%s > %s 2>&1", cur, exec_file);
 					ast_safe_system(cmd);
 					cur = exec_file;




More information about the svn-commits mailing list