aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-13 21:25:10 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-13 21:25:10 +0000
commit1e1095862dbfb7b0806ef2a31b1a914548b52ceb (patch)
treebd4a3ebe7ebaab440e8bfb5016e2cd306e403300 /apps
parente160148695c99ec2d4ea29f53c8d067a6c2f89fe (diff)
x86-64 compile fixes and cleanups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3202 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_festival.c4
-rwxr-xr-xapps/app_milliwatt.c2
-rwxr-xr-xapps/app_sms.c2
-rwxr-xr-xapps/app_voicemail.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c
index 3076d9a42..c0352cbb2 100755
--- a/apps/app_festival.c
+++ b/apps/app_festival.c
@@ -199,7 +199,7 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in
needed = f->samples * 2;
if (needed > sizeof(myf.frdata)) {
ast_log(LOG_WARNING, "Only able to deliver %d of %d requested samples\n",
- sizeof(myf.frdata) / 2, needed/2);
+ (int)sizeof(myf.frdata) / 2, needed/2);
needed = sizeof(myf.frdata);
}
res = read(fds[0], myf.frdata, needed);
@@ -374,7 +374,7 @@ static int festival_exec(struct ast_channel *chan, void *vdata)
}
} else {
read(fdesc,&strln,sizeof(int));
- ast_log(LOG_DEBUG,"Cache file exists, strln=%d, strlen=%d\n",strln,strlen((char *)data));
+ ast_log(LOG_DEBUG,"Cache file exists, strln=%d, strlen=%d\n",strln,(int)strlen((char *)data));
if (strlen((char *)data)==strln) {
ast_log(LOG_DEBUG,"Size OK\n");
read(fdesc,&bigstring,strln);
diff --git a/apps/app_milliwatt.c b/apps/app_milliwatt.c
index 78f0604ce..dd14b60d4 100755
--- a/apps/app_milliwatt.c
+++ b/apps/app_milliwatt.c
@@ -64,7 +64,7 @@ static int milliwatt_generate(struct ast_channel *chan, void *data, int len, int
if (len > sizeof(buf))
{
- ast_log(LOG_WARNING,"Only doing %d bytes (%d bytes requested)\n",sizeof(buf),len);
+ ast_log(LOG_WARNING,"Only doing %d bytes (%d bytes requested)\n",(int)sizeof(buf),len);
len = sizeof(buf);
}
waste[0] = 0; /* make compiler happy */
diff --git a/apps/app_sms.c b/apps/app_sms.c
index 7e704449f..b935ae5cc 100755
--- a/apps/app_sms.c
+++ b/apps/app_sms.c
@@ -860,7 +860,7 @@ sms_generate (struct ast_channel *chan, void *data, int len, int samples)
if (len > sizeof (buf))
{
- ast_log (LOG_WARNING, "Only doing %d bytes (%d bytes requested)\n", sizeof (buf) / sizeof (signed short), len);
+ ast_log (LOG_WARNING, "Only doing %d bytes (%d bytes requested)\n", (int)(sizeof (buf) / sizeof (signed short)), len);
len = sizeof (buf);
samples = len / 2;
}
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index cc2b4dfe4..fa25f7501 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2953,7 +2953,7 @@ static int vm_options(struct ast_channel *chan, struct ast_vm_user *vmu, struct
break;
}
vm_change_password(vmu,newpassword);
- ast_log(LOG_DEBUG,"User %s set password to %s of length %i\n",vms->username,newpassword,strlen(newpassword));
+ ast_log(LOG_DEBUG,"User %s set password to %s of length %i\n",vms->username,newpassword,(int)strlen(newpassword));
cmd = play_and_wait(chan,"vm-passchanged");
break;
case '*':