Commit ffb865e6 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* fixed a few signedness warnings. Please shout if this accidentally breaks something.

parent 67b0c28a
...@@ -678,7 +678,7 @@ static int MMSOpen( access_t *p_access, vlc_url_t *p_url, int i_proto ) ...@@ -678,7 +678,7 @@ static int MMSOpen( access_t *p_access, vlc_url_t *p_url, int i_proto )
GetDWLE( p_sys->p_cmd + MMS_CMD_HEADERSIZE + 60 ); GetDWLE( p_sys->p_cmd + MMS_CMD_HEADERSIZE + 60 );
msg_Dbg( p_access, msg_Dbg( p_access,
"answer 0x06 flags:0x%8.8x media_length:%us packet_length:%u packet_count:%u max_bit_rate:%d header_size:%d", "answer 0x06 flags:0x%8.8x media_length:%us packet_length:%lu packet_count:%u max_bit_rate:%d header_size:%d",
p_sys->i_flags_broadcast, p_sys->i_flags_broadcast,
p_sys->i_media_length, p_sys->i_media_length,
p_sys->i_packet_length, p_sys->i_packet_length,
......
...@@ -211,7 +211,8 @@ static void Run( intf_thread_t *p_intf ) ...@@ -211,7 +211,8 @@ static void Run( intf_thread_t *p_intf )
/* We received something */ /* We received something */
i_struct_size = sizeof( from ); i_struct_size = sizeof( from );
i_read = recvfrom( i_socket, p_data, MAX_MSG_LENGTH, 0, i_read = recvfrom( i_socket, p_data, MAX_MSG_LENGTH, 0,
(struct sockaddr*)&from, &i_struct_size ); (struct sockaddr*)&from,
(unsigned int *)&i_struct_size );
i_clockref = ntoh64(*(int64_t *)p_data); i_clockref = ntoh64(*(int64_t *)p_data);
......
...@@ -99,7 +99,8 @@ static void CatalogLoad( xml_t *p_xml, const char *psz_filename ) ...@@ -99,7 +99,8 @@ static void CatalogLoad( xml_t *p_xml, const char *psz_filename )
static void CatalogAdd( xml_t *p_xml, const char *psz_arg1, static void CatalogAdd( xml_t *p_xml, const char *psz_arg1,
const char *psz_arg2, const char *psz_filename ) const char *psz_arg2, const char *psz_filename )
{ {
xmlCatalogAdd( psz_arg1, psz_arg2, psz_filename ); xmlCatalogAdd( (unsigned char*)psz_arg1, (unsigned char*)psz_arg2,
(unsigned char*)psz_filename );
} }
/***************************************************************************** /*****************************************************************************
......
...@@ -2132,7 +2132,7 @@ static char *CacheName( void ) ...@@ -2132,7 +2132,7 @@ static char *CacheName( void )
/* Code int size, pointer size and endianness in the filename */ /* Code int size, pointer size and endianness in the filename */
int32_t x = 0xbe00001e; int32_t x = 0xbe00001e;
sprintf( psz_cachename, "plugins-%.2x%.2x%.2x.dat", sizeof(int), sprintf( psz_cachename, "plugins-%.2lx%.2lx%.2x.dat", sizeof(int),
sizeof(void *), (unsigned int)((unsigned char *)&x)[0] ); sizeof(void *), (unsigned int)((unsigned char *)&x)[0] );
return psz_cachename; return psz_cachename;
} }
......
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