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

This commit is contained in:
Felix Paul Kühne 2006-03-29 07:33:35 +00:00
parent 67b0c28a68
commit ffb865e6c9
4 changed files with 6 additions and 4 deletions

View File

@ -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 );
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_media_length,
p_sys->i_packet_length,

View File

@ -211,7 +211,8 @@ static void Run( intf_thread_t *p_intf )
/* We received something */
i_struct_size = sizeof( from );
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);

View File

@ -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,
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 );
}
/*****************************************************************************

View File

@ -2132,7 +2132,7 @@ static char *CacheName( void )
/* Code int size, pointer size and endianness in the filename */
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] );
return psz_cachename;
}