[Asterisk-cvs] asterisk/channels chan_modem_bestdata.c, 1.13, 1.14 chan_zap.c, 1.408, 1.409

markster at lists.digium.com markster at lists.digium.com
Fri Feb 25 11:34:29 CST 2005


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

Modified Files:
	chan_modem_bestdata.c chan_zap.c 
Log Message:
Fix GCC 4.0 build (bug #3662)


Index: chan_modem_bestdata.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_modem_bestdata.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- chan_modem_bestdata.c	2 Oct 2004 00:58:31 -0000	1.13
+++ chan_modem_bestdata.c	25 Feb 2005 17:32:37 -0000	1.14
@@ -47,10 +47,10 @@
 	NULL
 };
 
-static int bestdata_startrec(struct ast_modem_pvt *p)
-{
 static int bestdata_break(struct ast_modem_pvt *p);
 
+static int bestdata_startrec(struct ast_modem_pvt *p)
+{
 	if (p->ministate != STATE_COMMAND) bestdata_break(p);
 	if (ast_modem_send(p, "AT+VRX", 0) ||
 	     ast_modem_expect(p, "CONNECT", 5)) {
@@ -63,8 +63,6 @@
 
 static int bestdata_startplay(struct ast_modem_pvt *p)
 {
-static int bestdata_break(struct ast_modem_pvt *p);
-
 	if (p->ministate != STATE_COMMAND) bestdata_break(p);
 	if (ast_modem_send(p, "AT+VTX", 0) ||
 	     ast_modem_expect(p, "CONNECT", 5)) {

Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.408
retrieving revision 1.409
diff -u -d -r1.408 -r1.409
--- chan_zap.c	10 Feb 2005 17:40:06 -0000	1.408
+++ chan_zap.c	25 Feb 2005 17:32:37 -0000	1.409
@@ -751,6 +751,8 @@
 #endif		
 }
 
+static int restore_gains(struct zt_pvt *p);
+
 static void swap_subs(struct zt_pvt *p, int a, int b)
 {
 	int tchan;
@@ -1983,7 +1985,7 @@
 {
 	int res;
 	int index,x, law;
-	static int restore_gains(struct zt_pvt *p);
+	/*static int restore_gains(struct zt_pvt *p);*/
 	struct zt_pvt *p = ast->pvt->pvt;
 	struct zt_pvt *tmp = NULL;
 	struct zt_pvt *prev = NULL;




More information about the svn-commits mailing list