[Asterisk-cvs] asterisk/channels chan_modem.c,1.34,1.35

markster at lists.digium.com markster at lists.digium.com
Tue Jan 18 05:37:30 CST 2005


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

Modified Files:
	chan_modem.c 
Log Message:
Fix compiler warnings (bug #3367)


Index: chan_modem.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_modem.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- chan_modem.c	15 Jan 2005 21:51:37 -0000	1.34
+++ chan_modem.c	18 Jan 2005 11:40:44 -0000	1.35
@@ -791,6 +791,7 @@
 	struct ast_channel *tmp = NULL;
 	char dev[80];
 	ast_group_t group = 0;
+	int groupint;
 	char *stringp=NULL;
 	strncpy(dev, (char *)data, sizeof(dev)-1);
 	stringp=dev;
@@ -799,11 +800,11 @@
 
 	if (dev[0]=='g' && isdigit(dev[1])) {
 		/* Retrieve the group number */
-		if (sscanf(dev+1, "%u", &group) < 1) {
+		if (sscanf(dev+1, "%u", &groupint) < 1) {
 			ast_log(LOG_WARNING, "Unable to determine group from [%s]\n", (char *)data);
 			return NULL;
 		}
-		group = 1 << group;
+		group = 1 << groupint;
 	}
 
 	/* Search for an unowned channel */




More information about the svn-commits mailing list