diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-05 15:04:43 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-05 15:04:43 +0000 |
commit | 62d73d678be0a9ab297c8e8bf9f5fc7eea77e0a1 (patch) | |
tree | fbd0ef10bda1aa148ddde9901fa844bc6fc03dd4 /include/asterisk/file.h | |
parent | 2d47f7a20bf96c8a9fc099cc1b7de348d601831c (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 'include/asterisk/file.h')
-rwxr-xr-x | include/asterisk/file.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asterisk/file.h b/include/asterisk/file.h index 3ca59e625..8b6104df8 100755 --- a/include/asterisk/file.h +++ b/include/asterisk/file.h @@ -122,7 +122,7 @@ int ast_filecopy(const char *oldname, const char *newname, const char *fmt); * Wait for a stream to stop or for any one of a given digit to arrive, Returns 0 * if the stream finishes, the character if it was interrupted, and -1 on error */ -char ast_waitstream(struct ast_channel *c, const char *breakon); +int ast_waitstream(struct ast_channel *c, const char *breakon); /*! Same as waitstream but allows stream to be forwarded or rewound */ /*! @@ -135,11 +135,11 @@ char ast_waitstream(struct ast_channel *c, const char *breakon); * Wait for a stream to stop or for any one of a given digit to arrive, Returns 0 * if the stream finishes, the character if it was interrupted, and -1 on error */ -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); /* Same as waitstream, but with audio output to fd and monitored fd checking. Returns 1 if monfd is ready for reading */ -char ast_waitstream_full(struct ast_channel *c, const char *breakon, int audiofd, int monfd); +int ast_waitstream_full(struct ast_channel *c, const char *breakon, int audiofd, int monfd); /*! Starts reading from a file */ /*! |