[Asterisk-cvs] asterisk/channels chan_agent.c,1.105,1.106
markster at lists.digium.com
markster at lists.digium.com
Sun Jan 16 22:43:39 CST 2005
- Previous message: [Asterisk-cvs] asterisk/channels chan_vpb.c,1.59,1.60
- Next message: [Asterisk-cvs] asterisk .cleancount, NONE, 1.1 .cvsignore, 1.5,
1.6 Makefile, 1.128, 1.129 README, 1.29, 1.30
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv24892/channels
Modified Files:
chan_agent.c
Log Message:
Rid us of a silly compiler warning
Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -d -r1.105 -r1.106
--- chan_agent.c 15 Jan 2005 23:31:19 -0000 1.105
+++ chan_agent.c 17 Jan 2005 04:47:01 -0000 1.106
@@ -1118,15 +1118,16 @@
struct ast_channel *chan = NULL;
char *s;
ast_group_t groupmatch;
+ int groupoff;
int waitforagent=0;
int hasagent = 0;
struct timeval tv;
s = data;
- if ((s[0] == '@') && (sscanf(s + 1, "%d", &groupmatch) == 1)) {
- groupmatch = (1 << groupmatch);
- } else if ((s[0] == ':') && (sscanf(s + 1, "%d", &groupmatch) == 1)) {
- groupmatch = (1 << groupmatch);
+ if ((s[0] == '@') && (sscanf(s + 1, "%d", &groupoff) == 1)) {
+ groupmatch = (1 << groupoff);
+ } else if ((s[0] == ':') && (sscanf(s + 1, "%d", &groupoff) == 1)) {
+ groupmatch = (1 << groupoff);
waitforagent = 1;
} else {
groupmatch = 0;
@@ -1965,14 +1966,15 @@
struct agent_pvt *p;
char *s;
ast_group_t groupmatch;
+ int groupoff;
int waitforagent=0;
int res = AST_DEVICE_INVALID;
s = data;
- if ((s[0] == '@') && (sscanf(s + 1, "%d", &groupmatch) == 1)) {
- groupmatch = (1 << groupmatch);
- } else if ((s[0] == ':') && (sscanf(s + 1, "%d", &groupmatch) == 1)) {
- groupmatch = (1 << groupmatch);
+ if ((s[0] == '@') && (sscanf(s + 1, "%d", &groupoff) == 1)) {
+ groupmatch = (1 << groupoff);
+ } else if ((s[0] == ':') && (sscanf(s + 1, "%d", &groupoff) == 1)) {
+ groupmatch = (1 << groupoff);
waitforagent = 1;
} else {
groupmatch = 0;
- Previous message: [Asterisk-cvs] asterisk/channels chan_vpb.c,1.59,1.60
- Next message: [Asterisk-cvs] asterisk .cleancount, NONE, 1.1 .cvsignore, 1.5,
1.6 Makefile, 1.128, 1.129 README, 1.29, 1.30
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list