]> git.sesse.net Git - vlc/commitdiff
system_Configure: remove unused indirection
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 29 Mar 2010 20:47:04 +0000 (23:47 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 29 Mar 2010 20:47:04 +0000 (23:47 +0300)
This is too late to change command line options anyway.

src/libvlc.c
src/libvlc.h
src/misc/darwin_specific.c
src/misc/linux_specific.c
src/misc/not_specific.c
src/win32/specific.c

index a4e0c5bd6fa34cbd0db83013086352b7da4060fc..3217b9be1b88f3cee95120a425269d50118d8f4d 100644 (file)
@@ -818,7 +818,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
     }
 
     /* System specific configuration */
-    system_Configure( p_libvlc, &i_argc, ppsz_argv );
+    system_Configure( p_libvlc, i_argc, ppsz_argv );
 
     /* Add service discovery modules */
     psz_modules = var_InheritString( p_libvlc, "services-discovery" );
index 777d81d9f222cb6f5e48d65077168928dcac9a89..2a95283b40a0f3853508d954f0f2c83507df7912 100644 (file)
@@ -42,7 +42,7 @@ extern void vlc_DeinitActions (libvlc_int_t *);
  * OS-specific initialization
  */
 void system_Init      ( libvlc_int_t *, int *, const char *[] );
-void system_Configure ( libvlc_int_t *, int *, const char *[] );
+void system_Configure ( libvlc_int_t *, int, const char *const [] );
 void system_End       ( libvlc_int_t * );
 
 /*
index 4ab65248ead3a84e5a9f265effe1b96cd8237038..810bd1b27ae175a7935d64dddd90eff13edf6154 100644 (file)
@@ -162,10 +162,11 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
 /*****************************************************************************
  * system_Configure: check for system specific configuration options.
  *****************************************************************************/
-void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
+void system_Configure( libvlc_int_t *p_this,
+                       int i_argc, const char *const ppsz_argv[] )
 {
     (void)p_this;
-    (void)pi_argc;
+    (void)i_argc;
     (void)ppsz_argv;
 }
 
index 5d2924656b90c1a2b37d6be8b8ede20a60a30df1..1644ce62133cdbeca5c8f16b97e3ace0b0df2cf4 100644 (file)
@@ -115,7 +115,8 @@ void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
     (void)libvlc; (void)argc; (void)argv;
 }
 
-void system_Configure (libvlc_int_t *libvlc, int *argc, const char *argv[])
+void system_Configure (libvlc_int_t *libvlc,
+                       int argc, const char *const argv[])
 {
     (void)libvlc; (void)argc; (void)argv;
 }
index 6d0f369566436f3e852de76cb772f50faf90947a..aa6078f937a964e1d1c23648f4d3e34a55e3bc98 100644 (file)
@@ -39,7 +39,8 @@ void system_Init (libvlc_int_t *libvlc, int *argc, const char *argv[])
     (void)libvlc; (void)argc; (void)argv;
 }
 
-void system_Configure (libvlc_int_t *libvlc, int *argc, const char *argv[])
+void system_Configure (libvlc_int_t *libvlc,
+                       int argc, const char *const argv[])
 {
     (void)libvlc; (void)argc; (void)argv;
 }
index c3e3a75c2a71ecb7d09adc5aaa53818cbfb47016..1fb2b2065538891a49364ef068fa273b9910bb8b 100644 (file)
@@ -134,7 +134,7 @@ typedef struct
   char data[];
 } vlc_ipc_data_t;
 
-void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
+void system_Configure( libvlc_int_t *p_this, int i_argc, const char *const ppsz_argv[] )
 {
 #if !defined( UNDER_CE )
     /* Raise default priority of the current process */
@@ -221,24 +221,24 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv
 
             /* We assume that the remaining parameters are filenames
              * and their input options */
-            if( *pi_argc - 1 >= vlc_optind )
+            if( i_argc - 1 >= vlc_optind )
             {
                 COPYDATASTRUCT wm_data;
                 int i_opt;
                 vlc_ipc_data_t *p_data;
                 size_t i_data = sizeof (*p_data);
 
-                for( i_opt = vlc_optind; i_opt < *pi_argc; i_opt++ )
+                for( i_opt = vlc_optind; i_opt < i_argc; i_opt++ )
                 {
                     i_data += sizeof (size_t);
                     i_data += strlen( ppsz_argv[ i_opt ] ) + 1;
                 }
 
                 p_data = malloc( i_data );
-                p_data->argc = *pi_argc - vlc_optind;
+                p_data->argc = i_argc - vlc_optind;
                 p_data->enqueue = var_InheritBool( p_this, "playlist-enqueue" );
                 i_data = 0;
-                for( i_opt = vlc_optind; i_opt < *pi_argc; i_opt++ )
+                for( i_opt = vlc_optind; i_opt < i_argc; i_opt++ )
                 {
                     size_t i_len = strlen( ppsz_argv[ i_opt ] ) + 1;
                     /* Windows will never switch to an architecture