From 7a2d5cbb3e69140e3077c14ce045248e18dd8293 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Sun, 5 Jun 2005 15:04:43 +0000 Subject: make ast_waitstream_* return value compatible with platforms that use unsigned char by default (bug #4455) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5846 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/channel.h | 4 ++-- include/asterisk/file.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 5335d284b..893e34add 100755 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -754,11 +754,11 @@ struct ast_channel *ast_get_channel_by_name_locked(char *channame); * \param c channel to wait for a digit on * \param ms how many milliseconds to wait * Wait for a digit. Returns <0 on error, 0 on no entry, and the digit on success. */ -char ast_waitfordigit(struct ast_channel *c, int ms); +int ast_waitfordigit(struct ast_channel *c, int ms); /* Same as above with audio fd for outputing read audio and ctrlfd to monitor for reading. Returns 1 if ctrlfd becomes available */ -char ast_waitfordigit_full(struct ast_channel *c, int ms, int audiofd, int ctrlfd); +int ast_waitfordigit_full(struct ast_channel *c, int ms, int audiofd, int ctrlfd); /*! Reads multiple digits */ /*! 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 */ /*! -- cgit v1.2.3