Commit 26bc3940 authored by Laurent Aimar's avatar Laurent Aimar

Compilation warning fixes.

parent d27ab781
...@@ -641,7 +641,7 @@ static int OpenEncoder( vlc_object_t *p_this ) ...@@ -641,7 +641,7 @@ static int OpenEncoder( vlc_object_t *p_this )
encoder_sys_t *p_sys; encoder_sys_t *p_sys;
const SpeexMode *p_speex_mode = &speex_nb_mode; const SpeexMode *p_speex_mode = &speex_nb_mode;
int i_quality, i; int i_quality, i;
char *pp_header[2]; const char *pp_header[2];
int pi_header[2]; int pi_header[2];
uint8_t *p_extra; uint8_t *p_extra;
......
...@@ -116,7 +116,7 @@ typedef struct ...@@ -116,7 +116,7 @@ typedef struct
} telnet_client_t; } telnet_client_t;
static char *MessageToString( vlm_message_t *, int ); 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 struct intf_sys_t
{ {
...@@ -500,7 +500,7 @@ static void Run( intf_thread_t *p_intf ) ...@@ -500,7 +500,7 @@ static void Run( intf_thread_t *p_intf )
} }
static void Write_message( telnet_client_t *client, vlm_message_t *message, 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; char *psz_message;
......
...@@ -103,7 +103,7 @@ static int Open( vlc_object_t * p_this ) ...@@ -103,7 +103,7 @@ static int Open( vlc_object_t * p_this )
uint8_t *p_peek; uint8_t *p_peek;
unsigned int i_size, i_extended; unsigned int i_size, i_extended;
char *psz_name; const char *psz_name;
WAVEFORMATEXTENSIBLE *p_wf_ext; WAVEFORMATEXTENSIBLE *p_wf_ext;
WAVEFORMATEX *p_wf; WAVEFORMATEX *p_wf;
......
...@@ -82,7 +82,7 @@ static void Redraw ( intf_thread_t *, time_t * ); ...@@ -82,7 +82,7 @@ static void Redraw ( intf_thread_t *, time_t * );
static playlist_item_t *PlaylistGetRoot( intf_thread_t * ); static playlist_item_t *PlaylistGetRoot( intf_thread_t * );
static void PlaylistRebuild( 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 void PlaylistDestroy( intf_thread_t * );
static int PlaylistChanged( vlc_object_t *, const char *, vlc_value_t, static int PlaylistChanged( vlc_object_t *, const char *, vlc_value_t,
vlc_value_t, void * ); vlc_value_t, void * );
...@@ -1666,7 +1666,7 @@ static void PlaylistRebuild( intf_thread_t *p_intf ) ...@@ -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, 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; intf_sys_t *p_sys = p_intf->p_sys;
playlist_item_t *p_child; playlist_item_t *p_child;
...@@ -1903,7 +1903,7 @@ static void ReadDir( intf_thread_t *p_intf ) ...@@ -1903,7 +1903,7 @@ static void ReadDir( intf_thread_t *p_intf )
if( p_sys->psz_current_dir && *p_sys->psz_current_dir ) if( p_sys->psz_current_dir && *p_sys->psz_current_dir )
{ {
const char *psz_entry; char *psz_entry;
/* Open the dir */ /* Open the dir */
p_current_dir = utf8_opendir( p_sys->psz_current_dir ); p_current_dir = utf8_opendir( p_sys->psz_current_dir );
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#define NUM_GENRES 80 #define NUM_GENRES 80
static char *ppsz_genres[] = { static const char *ppsz_genres[] = {
N_("Blues"), N_("Blues"),
N_("Classic rock"), N_("Classic rock"),
N_("Country"), N_("Country"),
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
"computing intensive. The range is 0 - 1000 ms." ) "computing intensive. The range is 0 - 1000 ms." )
static int pi_pos_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 }; 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_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") }; N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") };
......
...@@ -166,7 +166,7 @@ static int FilterCallback( vlc_object_t *, char const *, ...@@ -166,7 +166,7 @@ static int FilterCallback( vlc_object_t *, char const *,
vlc_value_t, vlc_value_t, void * ); vlc_value_t, vlc_value_t, void * );
static struct static struct
{ {
char *psz_name; const char *psz_name;
int (*pf_run)( visual_effect_t *, aout_instance_t *, int (*pf_run)( visual_effect_t *, aout_instance_t *,
aout_buffer_t *, picture_t *); aout_buffer_t *, picture_t *);
} pf_effect_run[]= } pf_effect_run[]=
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment