aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_modem.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-15 21:51:38 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-15 21:51:38 +0000
commit8701d138d18de92b3e6b733b7c8c35b70acdf584 (patch)
treedd6a81383376b62800c69ebf1e2db5bd1dae311b /channels/chan_modem.c
parent20ef4fa9e2013bde8d7823c0811b34021be0324e (diff)
Make groups be 64-bits (bug #3351, with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4803 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_modem.c')
-rwxr-xr-xchannels/chan_modem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/channels/chan_modem.c b/channels/chan_modem.c
index 9a1e2074d..6bd5c6cd3 100755
--- a/channels/chan_modem.c
+++ b/channels/chan_modem.c
@@ -74,7 +74,7 @@ struct ast_dsp *dsp = NULL;
static char outgoingmsn[AST_MAX_EXTENSION]="";
/* Default group */
-static unsigned int cur_group = 0;
+static ast_group_t cur_group = 0;
static int usecnt =0;
@@ -790,7 +790,7 @@ static struct ast_channel *modem_request(const char *type, int format, void *dat
struct ast_modem_pvt *p;
struct ast_channel *tmp = NULL;
char dev[80];
- unsigned int group = 0;
+ ast_group_t group = 0;
char *stringp=NULL;
strncpy(dev, (char *)data, sizeof(dev)-1);
stringp=dev;
@@ -848,11 +848,11 @@ static struct ast_channel *modem_request(const char *type, int format, void *dat
return tmp;
}
-static unsigned int get_group(char *s)
+static ast_group_t get_group(char *s)
{
char *piece;
int start, finish,x;
- unsigned int group = 0;
+ ast_group_t group = 0;
char *copy = ast_strdupa(s);
char *stringp=NULL;
if (!copy) {
@@ -874,7 +874,7 @@ static unsigned int get_group(char *s)
piece = strsep(&stringp, ",");
for (x=start;x<=finish;x++) {
- if ((x > 31) || (x < 0)) {
+ if ((x > 63) || (x < 0)) {
ast_log(LOG_WARNING, "Ignoring invalid group %d\n", x);
break;
}