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 )
static char *dvbsi_to_utf8( char *psz_instring, size_t i_length )
{
const char *psz_encoding;
char *psz_stringstart, *psz_outstring, *psz_tmp;
const char *psz_encoding, *psz_stringstart;
char *psz_outstring, *psz_tmp;
char psz_encbuf[12];
size_t i_in, i_out;
vlc_iconv_t iconv_handle;
......
......@@ -66,7 +66,7 @@ vlc_module_end();
/*****************************************************************************
* 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 Control( access_t *, int, va_list );
......@@ -299,7 +299,7 @@ static void Close( vlc_object_t * p_this )
/*****************************************************************************
* 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;
rtmp_packet_t *rtmp_packet;
......
......@@ -55,7 +55,7 @@ vlc_module_end();
/*****************************************************************************
* 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 );
/*****************************************************************************
......@@ -85,9 +85,9 @@ static void Close( vlc_object_t * p_this )
/*****************************************************************************
* 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;
while( b )
......@@ -99,6 +99,7 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
block_ChainRelease( p_buffer );
(void)p_access;
return i_write;
}
......@@ -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 )
{
(void)p_access; (void)i_pos;
return 0;
}
......
......@@ -188,7 +188,7 @@ int ParseDirectory( intf_thread_t *p_intf, char *psz_root,
struct stat st;
if( stat( dir, &st ) == 0 )
{
closedir( dir );
closedir( p_dir );
return VLC_EGENERIC;
}
p_acl = NULL;
......
......@@ -39,7 +39,7 @@
/*****************************************************************************
* 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);
memset( p, 0, i_size );
......
......@@ -1311,6 +1311,7 @@ static int Send( sout_stream_t *p_stream, sout_stream_id_t *id,
block_t *p_next;
assert( p_stream->p_sys->p_mux == NULL );
(void)p_stream;
while( p_buffer != NULL )
{
......
......@@ -750,7 +750,7 @@ void playlist_SendAddNotify( playlist_t *p_playlist, int i_item_id,
val.p_address = p_add;
p_playlist->b_reset_currently_playing = true;
if( b_signal )
vlc_object_signal_maybe( p_playlist );
vlc_object_signal_maybe( VLC_OBJECT(p_playlist) );
var_Set( p_playlist, "item-append", val );
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