[asterisk-commits] file: branch 1.4 r74922 - /branches/1.4/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 12 14:18:00 CDT 2007


Author: file
Date: Thu Jul 12 14:17:59 2007
New Revision: 74922

URL: http://svn.digium.com/view/asterisk?view=rev&rev=74922
Log:
Whoops... didn't want this to be returned to 0 each iteration.

Modified:
    branches/1.4/main/channel.c

Modified: branches/1.4/main/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/channel.c?view=diff&rev=74922&r1=74921&r2=74922
==============================================================================
--- branches/1.4/main/channel.c (original)
+++ branches/1.4/main/channel.c Thu Jul 12 14:17:59 2007
@@ -2072,6 +2072,7 @@
 
 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))
@@ -2079,7 +2080,7 @@
 	/* 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);




More information about the asterisk-commits mailing list