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

Bunch of warnings

parent 1071c1bc
...@@ -2320,8 +2320,8 @@ static inline void *FixUTF8( char *p ) ...@@ -2320,8 +2320,8 @@ static inline void *FixUTF8( char *p )
static char *dvbsi_to_utf8( char *psz_instring, size_t i_length ) static char *dvbsi_to_utf8( char *psz_instring, size_t i_length )
{ {
const char *psz_encoding; const char *psz_encoding, *psz_stringstart;
char *psz_stringstart, *psz_outstring, *psz_tmp; char *psz_outstring, *psz_tmp;
char psz_encbuf[12]; char psz_encbuf[12];
size_t i_in, i_out; size_t i_in, i_out;
vlc_iconv_t iconv_handle; vlc_iconv_t iconv_handle;
......
...@@ -66,7 +66,7 @@ vlc_module_end(); ...@@ -66,7 +66,7 @@ vlc_module_end();
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
*****************************************************************************/ *****************************************************************************/
static int Read( access_t *, uint8_t *, size_t ); /*DOWN: last parameter int */ static ssize_t Read( access_t *, uint8_t *, size_t );
static int Seek( access_t *, int64_t ); static int Seek( access_t *, int64_t );
static int Control( access_t *, int, va_list ); static int Control( access_t *, int, va_list );
...@@ -299,7 +299,7 @@ static void Close( vlc_object_t * p_this ) ...@@ -299,7 +299,7 @@ static void Close( vlc_object_t * p_this )
/***************************************************************************** /*****************************************************************************
* Read: standard read on a file descriptor. * Read: standard read on a file descriptor.
*****************************************************************************/ *****************************************************************************/
static int Read( access_t *p_access, uint8_t *p_buffer, size_t i_len ) static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
{ {
access_sys_t *p_sys = p_access->p_sys; access_sys_t *p_sys = p_access->p_sys;
rtmp_packet_t *rtmp_packet; rtmp_packet_t *rtmp_packet;
......
...@@ -55,7 +55,7 @@ vlc_module_end(); ...@@ -55,7 +55,7 @@ vlc_module_end();
/***************************************************************************** /*****************************************************************************
* Exported prototypes * Exported prototypes
*****************************************************************************/ *****************************************************************************/
static int Write( sout_access_out_t *, block_t * ); static ssize_t Write( sout_access_out_t *, block_t * );
static int Seek ( sout_access_out_t *, off_t ); static int Seek ( sout_access_out_t *, off_t );
/***************************************************************************** /*****************************************************************************
...@@ -85,9 +85,9 @@ static void Close( vlc_object_t * p_this ) ...@@ -85,9 +85,9 @@ static void Close( vlc_object_t * p_this )
/***************************************************************************** /*****************************************************************************
* Read: standard read on a file descriptor. * Read: standard read on a file descriptor.
*****************************************************************************/ *****************************************************************************/
static int Write( sout_access_out_t *p_access, block_t *p_buffer ) static ssize_t Write( sout_access_out_t *p_access, block_t *p_buffer )
{ {
int64_t i_write = 0; size_t i_write = 0;
block_t *b = p_buffer; block_t *b = p_buffer;
while( b ) while( b )
...@@ -99,6 +99,7 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer ) ...@@ -99,6 +99,7 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
block_ChainRelease( p_buffer ); block_ChainRelease( p_buffer );
(void)p_access;
return i_write; return i_write;
} }
...@@ -107,6 +108,7 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer ) ...@@ -107,6 +108,7 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
*****************************************************************************/ *****************************************************************************/
static int Seek( sout_access_out_t *p_access, off_t i_pos ) static int Seek( sout_access_out_t *p_access, off_t i_pos )
{ {
(void)p_access; (void)i_pos;
return 0; return 0;
} }
......
...@@ -188,7 +188,7 @@ int ParseDirectory( intf_thread_t *p_intf, char *psz_root, ...@@ -188,7 +188,7 @@ int ParseDirectory( intf_thread_t *p_intf, char *psz_root,
struct stat st; struct stat st;
if( stat( dir, &st ) == 0 ) if( stat( dir, &st ) == 0 )
{ {
closedir( dir ); closedir( p_dir );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
p_acl = NULL; p_acl = NULL;
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
/***************************************************************************** /*****************************************************************************
* Access functions. * Access functions.
*****************************************************************************/ *****************************************************************************/
static int AccessRead( access_t *p_access, uint8_t *p, int i_size ) static ssize_t AccessRead( access_t *p_access, uint8_t *p, int i_size )
{ {
VLC_UNUSED(p_access); VLC_UNUSED(p_access);
memset( p, 0, i_size ); memset( p, 0, i_size );
......
...@@ -1311,6 +1311,7 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id, ...@@ -1311,6 +1311,7 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
block_t *p_next; block_t *p_next;
assert( p_stream->p_sys->p_mux == NULL ); assert( p_stream->p_sys->p_mux == NULL );
(void)p_stream;
while( p_buffer != NULL ) while( p_buffer != NULL )
{ {
......
...@@ -750,7 +750,7 @@ void playlist_SendAddNotify( playlist_t *p_playlist, int i_item_id, ...@@ -750,7 +750,7 @@ void playlist_SendAddNotify( playlist_t *p_playlist, int i_item_id,
val.p_address = p_add; val.p_address = p_add;
p_playlist->b_reset_currently_playing = true; p_playlist->b_reset_currently_playing = true;
if( b_signal ) if( b_signal )
vlc_object_signal_maybe( p_playlist ); vlc_object_signal_maybe( VLC_OBJECT(p_playlist) );
var_Set( p_playlist, "item-append", val ); var_Set( p_playlist, "item-append", val );
free( p_add ); free( p_add );
} }
......
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