aboutsummaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-05 15:04:43 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-05 15:04:43 +0000
commit62d73d678be0a9ab297c8e8bf9f5fc7eea77e0a1 (patch)
treefbd0ef10bda1aa148ddde9901fa844bc6fc03dd4 /app.c
parent2d47f7a20bf96c8a9fc099cc1b7de348d601831c (diff)
make ast_waitstream_* return value compatible with platforms that use unsigned char by default (bug #4455)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5846 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'app.c')
-rwxr-xr-xapp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/app.c b/app.c
index 93273b1a7..07799f87c 100755
--- a/app.c
+++ b/app.c
@@ -513,7 +513,8 @@ static int global_maxsilence = 0;
int ast_play_and_record(struct ast_channel *chan, const char *playfile, const char *recordfile, int maxtime, const char *fmt, int *duration, int silencethreshold, int maxsilence, const char *path)
{
- char d, *fmts;
+ int d;
+ char *fmts;
char comment[256];
int x, fmtcnt=1, res=-1,outmsg=0;
struct ast_frame *f;
@@ -730,7 +731,8 @@ int ast_play_and_record(struct ast_channel *chan, const char *playfile, const ch
int ast_play_and_prepend(struct ast_channel *chan, char *playfile, char *recordfile, int maxtime, char *fmt, int *duration, int beep, int silencethreshold, int maxsilence)
{
- char d = 0, *fmts;
+ int d = 0;
+ char *fmts;
char comment[256];
int x, fmtcnt=1, res=-1,outmsg=0;
struct ast_frame *f;