]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixed some warnings.
authorChristian Richter <christian.richter@beronet.com>
Thu, 30 Aug 2007 14:43:33 +0000 (14:43 +0000)
committerChristian Richter <christian.richter@beronet.com>
Thu, 30 Aug 2007 14:43:33 +0000 (14:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81373 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index 70fa81f7dbb7c910af546f19a73faa15ca69a509..f4faa2bab045372ff7ed3a48b643bdec267aa1cf 100644 (file)
@@ -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");