[asterisk-commits] crichter: branch 1.4 r81373 - /branches/1.4/channels/chan_misdn.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 30 09:43:33 CDT 2007
Author: crichter
Date: Thu Aug 30 09:43:33 2007
New Revision: 81373
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81373
Log:
Fixed some warnings.
Modified:
branches/1.4/channels/chan_misdn.c
Modified: branches/1.4/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_misdn.c?view=diff&rev=81373&r1=81372&r2=81373
==============================================================================
--- branches/1.4/channels/chan_misdn.c (original)
+++ branches/1.4/channels/chan_misdn.c Thu Aug 30 09:43:33 2007
@@ -2658,8 +2658,10 @@
static struct ast_frame *misdn_read(struct ast_channel *ast)
{
struct chan_list *tmp;
- int len;
-
+ fd_set rrfs;
+ struct timeval tv;
+ int len, t;
+
if (!ast) {
chan_misdn_log(1,0,"misdn_read called without ast\n");
return NULL;
@@ -2674,15 +2676,13 @@
return NULL;
}
- fd_set rrfs;
- struct timeval tv;
tv.tv_sec=0;
tv.tv_usec=20000;
FD_ZERO(&rrfs);
FD_SET(tmp->pipe[0],&rrfs);
- int t=select(FD_SETSIZE,&rrfs,NULL, NULL,&tv);
+ t=select(FD_SETSIZE,&rrfs,NULL, NULL,&tv);
if (!t) {
chan_misdn_log(3, tmp->bc->port, "read Select Timed out\n");
More information about the asterisk-commits
mailing list