diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-10 02:27:40 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-10 02:27:40 +0000 |
commit | aa82d132a4a22e1526a48bb0c83596f18662bef6 (patch) | |
tree | f11ed4c74227b989e3e24aa2deaa79d50f61d965 /apps/app_rpt.c | |
parent | b10d3f551791b40d29f3315d7374e6714dcde98c (diff) |
This patch solves some compiler complaints
in both 32 and 64-bit environments.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@174369 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_rpt.c')
-rw-r--r-- | apps/app_rpt.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/app_rpt.c b/apps/app_rpt.c index b7dc13fdc..dd4cd3a7d 100644 --- a/apps/app_rpt.c +++ b/apps/app_rpt.c @@ -260,6 +260,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include <signal.h> #include <stdio.h> +#include <stdint.h> #include <unistd.h> #include <string.h> #include <stdlib.h> @@ -471,7 +472,7 @@ struct rpt_tele int mode; struct rpt_link mylink; char param[TELEPARAMSIZE]; - int submode; + intptr_t submode; pthread_t threadid; } ; @@ -4144,7 +4145,7 @@ pthread_attr_t attr; strncpy(tele->param, (char *) data, TELEPARAMSIZE - 1); tele->param[TELEPARAMSIZE - 1] = 0; } - if (mode == REMXXX) tele->submode = (int) data; + if (mode == REMXXX) tele->submode = (intptr_t) data; insque((struct qelem *)tele, (struct qelem *)myrpt->tele.next); rpt_mutex_unlock(&myrpt->lock); pthread_attr_init(&attr); @@ -5098,13 +5099,14 @@ int i; static int function_cop(struct rpt *myrpt, char *param, char *digitbuf, int command_source, struct rpt_link *mylink) { char string[16]; + int res; if(!param) return DC_ERROR; switch(myatoi(param)){ case 1: /* System reset */ - system("killall -9 asterisk"); + res = system("killall -9 asterisk"); return DC_COMPLETE; case 2: @@ -7748,7 +7750,8 @@ static int retreive_memory(struct rpt *myrpt, char *memory) static int function_remote(struct rpt *myrpt, char *param, char *digitbuf, int command_source, struct rpt_link *mylink) { char *s,*s1,*s2; - int i,j,p,r,ht,k,l,ls2,m,d,offset,offsave, modesave, defmode; + int i,j,r,ht,k,l,ls2,m,d,offset,offsave, modesave, defmode=0; + intptr_t p; char multimode = 0; char oc,*cp,*cp1,*cp2; char tmp[20], freq[20] = "", savestr[20] = ""; |