[vlc-devel] commit: Unused variable ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Jan 12 19:33:37 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Jan 12 19:51:23 2009 +0200| [71fb06931f2cef615a79731a65574a4c99d21466] | committer: Rémi Denis-Courmont 

Unused variable

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

 modules/misc/lua/libs/playlist.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/misc/lua/libs/playlist.c b/modules/misc/lua/libs/playlist.c
index 0a2cf8d..b4113bf 100644
--- a/modules/misc/lua/libs/playlist.c
+++ b/modules/misc/lua/libs/playlist.c
@@ -267,9 +267,8 @@ static int vlclua_playlist_get( lua_State *L )
                                 : p_playlist->p_root_onelevel;
         else
         {
-            int i;
 #ifdef FIX_THAT_CODE_NOT_TO_MESS_WITH_PLAYLIST_INTERNALS
-            for( i = 0; i < p_playlist->i_sds; i++ )
+            for( int i = 0; i < p_playlist->i_sds; i++ )
             {
                 if( !strcasecmp( psz_what,
                                  p_playlist->pp_sds[i]->p_sd->psz_module ) )




More information about the vlc-devel mailing list