[Asterisk-cvs] asterisk/channels chan_modem_i4l.c,1.29,1.30

russell russell
Fri Aug 5 12:25:31 CDT 2005


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

Modified Files:
	chan_modem_i4l.c 
Log Message:
fix a bunch of gcc4 warnings realted to pointer signedness


Index: chan_modem_i4l.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_modem_i4l.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- chan_modem_i4l.c	24 Jun 2005 02:15:04 -0000	1.29
+++ chan_modem_i4l.c	5 Aug 2005 16:29:30 -0000	1.30
@@ -316,7 +316,7 @@
 
 static struct ast_frame *i4l_read(struct ast_modem_pvt *p)
 {
-	unsigned char result[256];
+	char result[256];
 	short *b;
 	struct ast_frame *f=NULL;
 	int res;
@@ -426,7 +426,7 @@
 						if (!f)
 							return NULL;
 					} else {
-						*(b++) = AST_MULAW(result[x]);
+						*(b++) = AST_MULAW((int)result[x]);
 						p->obuflen += 2;
 					}
 				}




More information about the svn-commits mailing list