aboutsummaryrefslogtreecommitdiffstats
path: root/file.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 /file.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 'file.c')
-rwxr-xr-xfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/file.c b/file.c
index 831b2ec2e..1c4e42bc7 100755
--- a/file.c
+++ b/file.c
@@ -934,7 +934,7 @@ struct ast_filestream *ast_writefile(const char *filename, const char *type, con
return fs;
}
-char ast_waitstream(struct ast_channel *c, const char *breakon)
+int ast_waitstream(struct ast_channel *c, const char *breakon)
{
/* XXX Maybe I should just front-end ast_waitstream_full ? XXX */
int res;
@@ -990,7 +990,7 @@ char ast_waitstream(struct ast_channel *c, const char *breakon)
return (c->_softhangup ? -1 : 0);
}
-char ast_waitstream_fr(struct ast_channel *c, const char *breakon, const char *forward, const char *rewind, int ms)
+int ast_waitstream_fr(struct ast_channel *c, const char *breakon, const char *forward, const char *rewind, int ms)
{
int res;
struct ast_frame *fr;
@@ -1059,7 +1059,7 @@ char ast_waitstream_fr(struct ast_channel *c, const char *breakon, const char *f
return (c->_softhangup ? -1 : 0);
}
-char ast_waitstream_full(struct ast_channel *c, const char *breakon, int audiofd, int cmdfd)
+int ast_waitstream_full(struct ast_channel *c, const char *breakon, int audiofd, int cmdfd)
{
int res;
int ms;