aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-10 04:36:22 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-10 04:36:22 +0000
commit3c3edff03e8d52d5c7c568978b33152163e76b41 (patch)
tree167411afa7e6fe96f9b653eea8f9603afb3aa615 /apps
parent00d7a6f1ded78f17852ff403a5e0d73d159a2b2b (diff)
More intptr_t work.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@174432 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_rpt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/app_rpt.c b/apps/app_rpt.c
index cc4566fdc..553dede48 100644
--- a/apps/app_rpt.c
+++ b/apps/app_rpt.c
@@ -601,7 +601,7 @@ struct rpt_tele
struct rpt_link mylink;
char param[TELEPARAMSIZE];
intptr_t submode;
- unsigned int parrot;
+ uintptr_t parrot;
pthread_t threadid;
} ;
@@ -4972,7 +4972,7 @@ struct dahdi_params par;
case PARROT: /* Repeat stuff */
- sprintf(mystr,PARROTFILE,myrpt->name,mytele->parrot);
+ sprintf(mystr,PARROTFILE,myrpt->name,(unsigned int)mytele->parrot);
if (ast_fileexists(mystr,NULL,mychannel->language) <= 0)
{
imdone = 1;
@@ -4980,14 +4980,14 @@ struct dahdi_params par;
break;
}
wait_interval(myrpt, DLY_PARROT, mychannel);
- sprintf(mystr,PARROTFILE,myrpt->name,mytele->parrot);
+ sprintf(mystr,PARROTFILE,myrpt->name,(unsigned int)mytele->parrot);
res = ast_streamfile(mychannel, mystr, mychannel->language);
if (!res)
res = ast_waitstream(mychannel, "");
else
ast_log(LOG_WARNING, "ast_streamfile failed on %s\n", mychannel->name);
ast_stopstream(mychannel);
- sprintf(mystr,PARROTFILE,myrpt->name,mytele->parrot);
+ sprintf(mystr,PARROTFILE,myrpt->name,(unsigned int)mytele->parrot);
strcat(mystr,".wav");
unlink(mystr);
imdone = 1;
@@ -5255,7 +5255,7 @@ char *v1, *v2;
memset((char *)tele,0,sizeof(struct rpt_tele));
tele->rpt = myrpt;
tele->mode = mode;
- if (mode == PARROT) tele->parrot = (unsigned int) data;
+ if (mode == PARROT) tele->parrot = (uintptr_t) data;
else mylink = (struct rpt_link *) data;
rpt_mutex_lock(&myrpt->lock);
if((mode == CONNFAIL) || (mode == REMDISC) || (mode == CONNECTED) ||
@@ -11991,7 +11991,7 @@ char tmpstr[300],lstr[MAXLINKLIST];
ast_closestream(myrpt->parrotstream);
myrpt->parrotstream = NULL;
myrpt->parrotstate = 2;
- rpt_telemetry(myrpt,PARROT,(struct rpt_link *) myrpt->parrotcnt++);
+ rpt_telemetry(myrpt,PARROT,(void *) ((intptr_t)myrpt->parrotcnt++));
}
if (myrpt->cmdAction.state == CMD_STATE_READY)
{ /* there is a command waiting to be processed */