aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_misdn.c
diff options
context:
space:
mode:
authorcrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-30 14:54:30 +0000
committercrichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-30 14:54:30 +0000
commit93ee511bb6b210128f46e6c52dc78f1d579ac0f3 (patch)
tree489f5d5028611116c92568880f48db1cb9caaf94 /channels/chan_misdn.c
parentce33d3a5189862d36f3a315b3e7b15d9a676b5fc (diff)
Merged revisions 81373 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r81373 | crichter | 2007-08-30 16:43:33 +0200 (Do, 30 Aug 2007) | 1 line Fixed some warnings. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81376 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r--channels/chan_misdn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c
index 4b1abbb10..f56ff99d9 100644
--- a/channels/chan_misdn.c
+++ b/channels/chan_misdn.c
@@ -2546,8 +2546,10 @@ static struct ast_frame *process_ast_dsp(struct chan_list *tmp, struct ast_frame
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;
@@ -2562,15 +2564,13 @@ static struct ast_frame *misdn_read(struct ast_channel *ast)
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");