access/dvb: narrow scope of iteration variable
authorFilip Roséen <filip@atch.se>
Tue, 11 Oct 2016 18:06:17 +0000 (20:06 +0200)
committerThomas Guillem <thomas@gllm.fr>
Wed, 12 Oct 2016 08:04:30 +0000 (10:04 +0200)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
modules/access/dvb/access.c

index fde6135..e878950 100644 (file)
@@ -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 )
         {