summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-07-12 19:19:03 +0000
committerJoshua Colp <jcolp@digium.com>2007-07-12 19:19:03 +0000
commit1f86a8bc2d93812d96d0ae77adb2779715720d9a (patch)
tree6e7fb39033a3e9d5a3db7f7c8e24342a762dd83d
parent8f3a5481dcf91906abf8fc15ad9cd9f9402c781c (diff)
Merged revisions 74922 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r74922 | file | 2007-07-12 16:17:59 -0300 (Thu, 12 Jul 2007) | 2 lines Whoops... didn't want this to be returned to 0 each iteration. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74923 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--main/channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c
index b8dbc2282..105dc030e 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -1992,6 +1992,7 @@ int ast_settimeout(struct ast_channel *c, int samples, int (*func)(void *data),
int ast_waitfordigit_full(struct ast_channel *c, int ms, int audiofd, int cmdfd)
{
+ int begin_digit = 0;
/* Stop if we're a zombie or need a soft hangup */
if (ast_test_flag(c, AST_FLAG_ZOMBIE) || ast_check_hangup(c))
@@ -1999,7 +2000,7 @@ int ast_waitfordigit_full(struct ast_channel *c, int ms, int audiofd, int cmdfd)
/* Wait for a digit, no more than ms milliseconds total. */
while (ms) {
struct ast_channel *rchan;
- int outfd, begin_digit = 0;
+ int outfd;
errno = 0;
rchan = ast_waitfor_nandfds(&c, 1, &cmdfd, (cmdfd > -1) ? 1 : 0, NULL, &outfd, &ms);