vlc | branch: master | Tristan Matthews <[email protected]> | Mon Aug 31 12:52:10 2015 -0400| [9f6b9ed65a4e52cd65c4155fbeb59843339ab02f] | committer: Tristan Matthews
video_filter: logo: use C99 loop declarations > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9f6b9ed65a4e52cd65c4155fbeb59843339ab02f --- modules/video_filter/logo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/video_filter/logo.c b/modules/video_filter/logo.c index a41055e..8dcd2b1 100644 --- a/modules/video_filter/logo.c +++ b/modules/video_filter/logo.c @@ -647,7 +647,6 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list, { char *psz_list; /* the list: <logo>[,[<delay>[,[<alpha>]]]][;...] */ char *psz_original; - unsigned int i; logo_t *p_logo; /* the parsing's result */ p_logo_list->i_counter = 0; @@ -659,7 +658,7 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list, /* Count the number logos == number of ';' + 1 */ p_logo_list->i_count = 1; - for( i = 0; i < strlen( psz_list ); i++ ) + for( unsigned i = 0; i < strlen( psz_list ); i++ ) { if( psz_list[i] == ';' ) p_logo_list->i_count++; @@ -671,7 +670,7 @@ static void LogoListLoad( vlc_object_t *p_this, logo_list_t *p_logo_list, abort(); /* Fill the data */ - for( i = 0; i < p_logo_list->i_count; i++ ) + for( unsigned i = 0; i < p_logo_list->i_count; i++ ) { char *p_c = strchr( psz_list, ';' ); char *p_c2 = strchr( psz_list, ',' ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
