diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-30 14:43:33 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-30 14:43:33 +0000 |
commit | 0c4e7c342869efbc16db826a3ab6b94cbb6d4f60 (patch) | |
tree | c370916ec824305c449c617ab2e16eb1f3e1d745 /channels/chan_misdn.c | |
parent | 032e78ee4e440691f1c86aecbc0374e7ec9da57a (diff) |
Fixed some warnings.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81373 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r-- | channels/chan_misdn.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 70fa81f7d..f4faa2bab 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -2658,8 +2658,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; @@ -2674,15 +2676,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"); |