aboutsummaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-14 18:41:48 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-14 18:41:48 +0000
commit929f74c99448a1e95494b8952e2fd33b7a99603d (patch)
treea763d61fde3e288474ba25a36c617c7ff697fd1f /app.c
parent661896e3dc9c3a6c67ca1363587fa3e183f5e1ad (diff)
fix return values on systems where an unsigned char is the default (bug #4455)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@5908 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 4ecc45268..5653cf167 100755
--- a/app.c
+++ b/app.c
@@ -520,7 +520,8 @@ static int global_maxsilence = 0;
int ast_play_and_record(struct ast_channel *chan, char *playfile, char *recordfile, int maxtime, 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;
@@ -736,7 +737,8 @@ int ast_play_and_record(struct ast_channel *chan, char *playfile, char *recordfi
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;