[vlc-devel] [PATCH 05/13] access/dvb: narrow scope of iteration variable

Filip Roséen filip at atch.se
Tue Oct 11 20:06:17 CEST 2016


---
 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 )
         {
-- 
2.10.0



More information about the vlc-devel mailing list