From 616b36ceec8868805698a62a07bc685fb30995de Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Fri, 8 Feb 2008 11:45:35 +0000 Subject: [PATCH] vlc_os_specific.h: Use const for argv. --- include/vlc_os_specific.h | 4 ++-- src/misc/beos_specific.cpp | 4 ++-- src/misc/darwin_specific.c | 10 +++++++--- src/misc/win32_specific.c | 4 ++-- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/include/vlc_os_specific.h b/include/vlc_os_specific.h index dea352b86a..342b23bd78 100644 --- a/include/vlc_os_specific.h +++ b/include/vlc_os_specific.h @@ -48,8 +48,8 @@ extern "C" { * Prototypes *****************************************************************************/ #ifdef _NEED_OS_SPECIFIC_H - void system_Init ( libvlc_int_t *, int *, char *[] ); - void system_Configure ( libvlc_int_t *, int *, char *[] ); + void system_Init ( libvlc_int_t *, int *, const char *[] ); + void system_Configure ( libvlc_int_t *, int *, const char *[] ); void system_End ( libvlc_int_t * ); #else # define system_Init( a, b, c ) {} diff --git a/src/misc/beos_specific.cpp b/src/misc/beos_specific.cpp index 779bcebab3..3eb2b2d70b 100644 --- a/src/misc/beos_specific.cpp +++ b/src/misc/beos_specific.cpp @@ -82,7 +82,7 @@ static void AppThread( vlc_object_t *p_appthread ); /***************************************************************************** * system_Init: create a BApplication object and fill in program path. *****************************************************************************/ -void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] ) +void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] ) { vlc_global()->p_appthread = (vlc_object_t *)vlc_object_create( p_this, sizeof(vlc_object_t) ); @@ -95,7 +95,7 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] ) /***************************************************************************** * system_Configure: check for system specific configuration options. *****************************************************************************/ -void system_Configure( libvlc_int_t *, int *pi_argc, char *ppsz_argv[] ) +void system_Configure( libvlc_int_t *, int *pi_argc, const char *ppsz_argv[] ) { } diff --git a/src/misc/darwin_specific.c b/src/misc/darwin_specific.c index e040014c5f..63830f610d 100644 --- a/src/misc/darwin_specific.c +++ b/src/misc/darwin_specific.c @@ -74,12 +74,13 @@ static CFArrayRef copy_all_locale_indentifiers(void) /***************************************************************************** * system_Init: fill in program path & retrieve language *****************************************************************************/ -void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] ) +void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] ) { char i_dummy; char *p_char = NULL; char *p_oldchar = &i_dummy; unsigned int i; + (void)pi_argc; /* Get the full program path and name */ @@ -174,9 +175,11 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] ) /***************************************************************************** * system_Configure: check for system specific configuration options. *****************************************************************************/ -void system_Configure( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] ) +void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] ) { - + (void)p_this; + (void)pi_argc; + (void)ppsz_argv; } /***************************************************************************** @@ -184,6 +187,7 @@ void system_Configure( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] ) *****************************************************************************/ void system_End( libvlc_int_t *p_this ) { + (void)p_this; free( vlc_global()->psz_vlcpath ); if ( vlc_global()->iconv_macosx != (vlc_iconv_t)-1 ) diff --git a/src/misc/win32_specific.c b/src/misc/win32_specific.c index 6be6beac38..137ac397db 100644 --- a/src/misc/win32_specific.c +++ b/src/misc/win32_specific.c @@ -45,7 +45,7 @@ /***************************************************************************** * system_Init: initialize winsock and misc other things. *****************************************************************************/ -void system_Init( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] ) +void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] ) { WSADATA Data; @@ -139,7 +139,7 @@ typedef struct char data[0]; } vlc_ipc_data_t; -void system_Configure( libvlc_int_t *p_this, int *pi_argc, char *ppsz_argv[] ) +void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] ) { #if !defined( UNDER_CE ) /* Raise default priority of the current process */ -- 2.39.5