[Asterisk-cvs] asterisk/channels iax2-parser.c, 1.28, 1.29 chan_iax2.c, 1.211, 1.212 chan_zap.c, 1.363, 1.364

citats at lists.digium.com citats at lists.digium.com
Sun Oct 24 02:40:55 CDT 2004


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

Modified Files:
	iax2-parser.c chan_iax2.c chan_zap.c 
Log Message:
Pass format string

Index: iax2-parser.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/iax2-parser.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- iax2-parser.c	2 Oct 2004 01:56:08 -0000	1.28
+++ iax2-parser.c	24 Oct 2004 06:44:36 -0000	1.29
@@ -32,7 +32,7 @@
 
 static void internaloutput(const char *str)
 {
-	printf(str);
+	fputs(str, stdout);
 }
 
 static void internalerror(const char *str)

Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.211
retrieving revision 1.212
diff -u -d -r1.211 -r1.212
--- chan_iax2.c	23 Oct 2004 12:19:47 -0000	1.211
+++ chan_iax2.c	24 Oct 2004 06:44:36 -0000	1.212
@@ -534,12 +534,12 @@
 static void iax_debug_output(const char *data)
 {
 	if (iaxdebug)
-		ast_verbose(data);
+		ast_verbose("%s", data);
 }
 
 static void iax_error_output(const char *data)
 {
-	ast_log(LOG_WARNING, data);
+	ast_log(LOG_WARNING, "%s", data);
 }
 
 /* XXX We probably should use a mutex when working with this XXX */

Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.363
retrieving revision 1.364
diff -u -d -r1.363 -r1.364
--- chan_zap.c	23 Oct 2004 22:00:40 -0000	1.363
+++ chan_zap.c	24 Oct 2004 06:44:36 -0000	1.364
@@ -7125,7 +7125,7 @@
 
 static void zt_pri_message(char *s)
 {
-	ast_verbose(s);
+	ast_verbose("%s", s);
 }
 
 static void zt_pri_error(char *s)




More information about the svn-commits mailing list