]> git.sesse.net Git - vlc/commitdiff
Compilation warning fixes.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 27 May 2007 17:19:07 +0000 (17:19 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 27 May 2007 17:19:07 +0000 (17:19 +0000)
modules/codec/speex.c
modules/control/telnet.c
modules/demux/wav.c
modules/gui/ncurses.c
modules/meta_engine/id3genres.h
modules/video_filter/osdmenu.c
modules/visualization/visual/visual.c

index 3086497f719bd0de2845208189b2b71e51dfd320..a8d6b899896f546e9a1da847493c28d8dc6da9ea 100644 (file)
@@ -641,7 +641,7 @@ static int OpenEncoder( vlc_object_t *p_this )
     encoder_sys_t *p_sys;
     const SpeexMode *p_speex_mode = &speex_nb_mode;
     int i_quality, i;
-    char *pp_header[2];
+    const char *pp_header[2];
     int pi_header[2];
     uint8_t *p_extra;
 
index b05ea5afa119cb36ef6621775ea27a5e1e2371a3..e8ce4a4c155a9b90bc4fd091183d2093a9ab1b09 100644 (file)
@@ -116,7 +116,7 @@ typedef struct
 } telnet_client_t;
 
 static char *MessageToString( vlm_message_t *, int );
-static void Write_message( telnet_client_t *, vlm_message_t *, char *, int );
+static void Write_message( telnet_client_t *, vlm_message_t *, const char *, int );
 
 struct intf_sys_t
 {
@@ -500,7 +500,7 @@ static void Run( intf_thread_t *p_intf )
 }
 
 static void Write_message( telnet_client_t *client, vlm_message_t *message,
-                           char *string_message, int i_mode )
+                           const char *string_message, int i_mode )
 {
     char *psz_message;
 
index 97ae766e3dd4f7c12038dd479aac085d6e039f11..9d02add905028fbc8cb1263154937ae95d26c800 100644 (file)
@@ -103,7 +103,7 @@ static int Open( vlc_object_t * p_this )
 
     uint8_t     *p_peek;
     unsigned int i_size, i_extended;
-    char        *psz_name;
+    const char        *psz_name;
 
     WAVEFORMATEXTENSIBLE *p_wf_ext;
     WAVEFORMATEX         *p_wf;
index 19b0650410e527aa1929c548fc9aba8cce785e80..64ba96bf17d89e8d2e80226477acb08b61ee8a95 100644 (file)
@@ -82,7 +82,7 @@ static void Redraw         ( intf_thread_t *, time_t * );
 
 static playlist_item_t *PlaylistGetRoot( intf_thread_t * );
 static void PlaylistRebuild( intf_thread_t * );
-static void PlaylistAddNode( intf_thread_t *, playlist_item_t *, int, char *);
+static void PlaylistAddNode( intf_thread_t *, playlist_item_t *, int, const char *);
 static void PlaylistDestroy( intf_thread_t * );
 static int  PlaylistChanged( vlc_object_t *, const char *, vlc_value_t,
                              vlc_value_t, void * );
@@ -1666,7 +1666,7 @@ static void PlaylistRebuild( intf_thread_t *p_intf )
 }
 
 static void PlaylistAddNode( intf_thread_t *p_intf, playlist_item_t *p_node,
-                             int i, char *c )
+                             int i, const char *c )
 {
     intf_sys_t *p_sys = p_intf->p_sys;
     playlist_item_t *p_child;
@@ -1903,7 +1903,7 @@ static void ReadDir( intf_thread_t *p_intf )
 
     if( p_sys->psz_current_dir && *p_sys->psz_current_dir )
     {
-        const char *psz_entry;
+        char *psz_entry;
 
         /* Open the dir */
         p_current_dir = utf8_opendir( p_sys->psz_current_dir );
index 10ed540a29984991de820d7eb11f5c09d3707920..4f9d648e060333c9b7e9b1f6cc900db6af92d3b9 100644 (file)
@@ -24,7 +24,7 @@
 
 #define NUM_GENRES 80
 
-static char *ppsz_genres[] = {
+static const char *ppsz_genres[] = {
     N_("Blues"),
     N_("Classic rock"),
     N_("Country"),
index e51560bff6db598be28ad53f3f72210f9d5a36fa..a50d855527c12414eb59af02954e15ad820a12bb 100644 (file)
@@ -71,7 +71,7 @@
     "computing intensive. The range is 0 - 1000 ms." )
 
 static int pi_pos_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 };
-static char *ppsz_pos_descriptions[] =
+static const char *ppsz_pos_descriptions[] =
 { N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
   N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") };
 
index 700827a4796e54507cf8b226310bcd69be0e21d7..c4e9d4f6345d898239ddb1985b3c973a54b96925 100644 (file)
@@ -166,7 +166,7 @@ static int FilterCallback( vlc_object_t *, char const *,
                            vlc_value_t, vlc_value_t, void * );
 static struct
 {
-    char *psz_name;
+    const char *psz_name;
     int  (*pf_run)( visual_effect_t *, aout_instance_t *,
                     aout_buffer_t *, picture_t *);
 } pf_effect_run[]=