[vlc-commits] access/dvb: narrow scope of iteration variable

Filip Roséen git at videolan.org
Wed Oct 12 10:04:38 CEST 2016


vlc | branch: master | Filip Roséen <filip at atch.se> | Tue Oct 11 20:06:17 2016 +0200| [ec259579a12994d7ae91007819896cd2c2f06fb9] | committer: Thomas Guillem

access/dvb: narrow scope of iteration variable

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec259579a12994d7ae91007819896cd2c2f06fb9
---

 modules/access/dvb/access.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/access/dvb/access.c b/modules/access/dvb/access.c
index fde6135..e878950 100644
--- a/modules/access/dvb/access.c
+++ b/modules/access/dvb/access.c
@@ -464,9 +464,8 @@ static void FilterSet( access_t *p_access, int i_pid, int i_type )
 static void FilterUnset( access_t *p_access, int i_max )
 {
     access_sys_t *p_sys = p_access->p_sys;
-    int i;
 
-    for( i = 0; i < i_max; i++ )
+    for( int i = 0; i < i_max; i++ )
     {
         if( p_sys->p_demux_handles[i].i_type )
         {



More information about the vlc-commits mailing list