Commit 8f1b2445 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix a bunch of warning.

parent 0a525c7c
......@@ -24,11 +24,11 @@
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 )
......
......@@ -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 ) );
......
......@@ -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 )
{
......
......@@ -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[] =
{
......
......@@ -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 )
......
......@@ -49,12 +49,12 @@
/*****************************************************************************
* 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 )
{
......
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