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