[vlc-commits] vlc_input_title_Duplicate: use C99 for

Jean-Baptiste Kempf git at videolan.org
Wed Jun 22 12:02:45 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jun 22 11:55:35 2016 +0200| [0fea928bfd8c26fbd54aef89cd4640999814f1fb] | committer: Jean-Baptiste Kempf

vlc_input_title_Duplicate: use C99 for
vlc_input_title_Duplicate: use C99 for
vlc_input_title_Duplicate: use C99 for
vlc_input_title_Duplicate: use C99 for
vlc_input_title_Duplicate: use C99 for
vlc_input_title_Duplicate: use C99 for
vlc_input_title_Duplicate: use C99 for

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

 include/vlc_input.h |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/vlc_input.h b/include/vlc_input.h
index 93b06f2..5ad04e0 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -133,8 +133,6 @@ static inline input_title_t *vlc_input_title_Duplicate( const input_title_t *t )
     input_title_t *dup = vlc_input_title_New( );
     if( dup == NULL) return NULL;
 
-    int i;
-
     if( t->psz_name ) dup->psz_name = strdup( t->psz_name );
     dup->i_flags     = t->i_flags;
     dup->i_length    = t->i_length;
@@ -143,7 +141,7 @@ static inline input_title_t *vlc_input_title_Duplicate( const input_title_t *t )
         dup->seekpoint = (seekpoint_t**)malloc( t->i_seekpoint * sizeof(seekpoint_t*) );
         if( likely(dup->seekpoint) )
         {
-            for( i = 0; i < t->i_seekpoint; i++ )
+            for( int i = 0; i < t->i_seekpoint; i++ )
                 dup->seekpoint[i] = vlc_seekpoint_Duplicate( t->seekpoint[i] );
             dup->i_seekpoint = t->i_seekpoint;
         }



More information about the vlc-commits mailing list