]> git.sesse.net Git - vlc/commitdiff
Fix a bunch of warning.
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 21 Oct 2006 17:28:22 +0000 (17:28 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 21 Oct 2006 17:28:22 +0000 (17:28 +0000)
include/iso_lang.h
include/vlc_input.h
src/input/es_out.c
src/misc/iso-639_def.h
src/misc/messages.c
src/misc/vlm.c

index e788fcd3c0c3a42f93484610df5e5a23e53bab27..9e0022fdb887c2de63bafbc94743ead0abd63ece 100644 (file)
 
 struct iso639_lang_t
 {
-    char * psz_eng_name;        /* Description in English */
-    char * psz_native_name;     /* Description in native language */
-    char * psz_iso639_1;        /* ISO-639-1 (2 characters) code */
-    char * psz_iso639_2T;       /* ISO-639-2/T (3 characters) English code */
-    char * psz_iso639_2B;       /* ISO-639-2/B (3 characters) native code */
+    const char * psz_eng_name;        /* Description in English */
+    const char * psz_native_name;     /* Description in native language */
+    const char * psz_iso639_1;        /* ISO-639-1 (2 characters) code */
+    const char * psz_iso639_2T;       /* ISO-639-2/T (3 characters) English code */
+    const char * psz_iso639_2B;       /* ISO-639-2/B (3 characters) native code */
 };
 
 #if defined( __cplusplus )
index 7e2bd3078936a3c93d7310ecfffc064016a1eafd..fee622196a301c6bf53b40706f18e384ac600828 100644 (file)
@@ -248,7 +248,7 @@ typedef struct
 
 } input_title_t;
 
-static inline input_title_t *vlc_input_title_New( )
+static inline input_title_t *vlc_input_title_New(void)
 {
     input_title_t *t = (input_title_t*)malloc( sizeof( input_title_t ) );
 
index 03aba946c4d96ddeb869966ee29c8b60c691c55f..a07b5a11ea3c814134fd5e699084d07ae8e4aa94 100644 (file)
@@ -334,7 +334,7 @@ static void EsOutESVarUpdate( es_out_t *out, es_out_id_t *es,
     input_thread_t    *p_input = p_sys->p_input;
     vlc_value_t       val, text;
 
-    char *psz_var;
+    const char *psz_var;
 
     if( es->fmt.i_cat == AUDIO_ES )
         psz_var = "audio-es";
@@ -740,7 +740,7 @@ static void EsSelect( es_out_t *out, es_out_id_t *es )
     es_out_sys_t   *p_sys = out->p_sys;
     input_thread_t *p_input = p_sys->p_input;
     vlc_value_t    val;
-    char           *psz_var;
+    const char     *psz_var;
 
     if( es->p_dec )
     {
@@ -808,7 +808,7 @@ static void EsUnselect( es_out_t *out, es_out_id_t *es, vlc_bool_t b_update )
     es_out_sys_t   *p_sys = out->p_sys;
     input_thread_t *p_input = p_sys->p_input;
     vlc_value_t    val;
-    char           *psz_var;
+    const char     *psz_var;
 
     if( es->p_dec == NULL )
     {
index 30246625fb4662d3c1e10e62fde50828bc51be80..829ccf6cb659d8cbee4a42eb752bf8d13fbe86cb 100644 (file)
@@ -6,7 +6,7 @@
  *
  * This is used in iso_lang.cpp and is taken from the GNU glibc 2.2.5
  * tarball. It has been partially completed with native language names.
- * Authors: Sthane Borel <stef@via.ecp.fr>
+ * Authors: Stéphane Borel <stef@via.ecp.fr>
  *          Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -29,9 +29,9 @@
  * If you find something missing or wrong contact <bug-glibc@gnu.org> */
 
 /* Some spellings were converted to pure ASCII:
- *  Provenl -> Provencal
+ *  Provençal -> Provencal
  *  Volapk -> Volapuk
- *  Bokm -> Bokmaal */
+ *  Bokm? -> Bokmaal */
 
 static const iso639_lang_t p_languages[] =
 {
index 9c3ea309308550c3ac61f3c827fd7d33584f566b..0ca3bd7e6e1575f3e702070e3b8433987f18d6ae 100644 (file)
@@ -481,7 +481,7 @@ static void PrintMsg ( vlc_object_t * p_this, msg_item_t * p_item )
 #endif
     static const char * ppsz_type[4] = { "", " error", " warning", " debug" };
     static const char *ppsz_color[4] = { WHITE, RED, YELLOW, GRAY };
-    char *psz_object = "private";
+    const char *psz_object = "private";
     int i_type = p_item->i_type;
 
     switch( i_type )
index 811d47177a16f56589185f2a655d12989bc0f857..4efa112e1de2ff231b7b5283b2986d15908e7dfa 100644 (file)
 /*****************************************************************************
  * Local prototypes.
  *****************************************************************************/
-static vlm_message_t *vlm_Show( vlm_t *, vlm_media_t *, vlm_schedule_t *, char * );
+static vlm_message_t *vlm_Show( vlm_t *, vlm_media_t *, vlm_schedule_t *, const char * );
 static vlm_message_t *vlm_Help( vlm_t *, char * );
 
 static vlm_media_instance_t *vlm_MediaInstanceSearch( vlm_t *, vlm_media_t *, const char * );
 
-static vlm_message_t *vlm_MessageNew( char *, const char *, ... );
+static vlm_message_t *vlm_MessageNew( const char *, const char *, ... );
 static vlm_message_t *vlm_MessageAdd( vlm_message_t *, vlm_message_t * );
 
 static vlm_schedule_t *vlm_ScheduleSearch( vlm_t *, const char * );
@@ -1347,7 +1347,7 @@ int vlm_MediaControl( vlm_t *vlm, vlm_media_t *media, const char *psz_id,
 /*****************************************************************************
  * Schedule handling
  *****************************************************************************/
-static int64_t vlm_Date()
+static int64_t vlm_Date(void)
 {
 #ifdef WIN32
     struct timeb tm;
@@ -1610,7 +1610,7 @@ int vlm_ScheduleSetup( vlm_schedule_t *schedule, const char *psz_cmd,
 /*****************************************************************************
  * Message handling functions
  *****************************************************************************/
-static vlm_message_t *vlm_MessageNew( char *psz_name,
+static vlm_message_t *vlm_MessageNew( const char *psz_name,
                                       const char *psz_format, ... )
 {
     vlm_message_t *p_message;
@@ -1673,7 +1673,8 @@ static vlm_message_t *vlm_MessageAdd( vlm_message_t *p_message,
  * Misc utility functions
  *****************************************************************************/
 static vlm_message_t *vlm_Show( vlm_t *vlm, vlm_media_t *media,
-                                vlm_schedule_t *schedule, char *psz_filter )
+                                vlm_schedule_t *schedule,
+                                const char *psz_filter )
 {
     if( media != NULL )
     {