Commit 880f95fd authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix compiler warnings

parent 0c2787f8
...@@ -292,7 +292,6 @@ static int Seek( access_t *p_access, int64_t i_pos ) ...@@ -292,7 +292,6 @@ static int Seek( access_t *p_access, int64_t i_pos )
*****************************************************************************/ *****************************************************************************/
static int Control( access_t *p_access, int i_query, va_list args ) static int Control( access_t *p_access, int i_query, va_list args )
{ {
access_sys_t *p_sys = p_access->p_sys;
vlc_bool_t *pb_bool; vlc_bool_t *pb_bool;
int *pi_int; int *pi_int;
int64_t *pi_64; int64_t *pi_64;
......
...@@ -218,7 +218,7 @@ static void call_hash (char *key, char *challenge, int len) { ...@@ -218,7 +218,7 @@ static void call_hash (char *key, char *challenge, int len) {
a += len * 8; a += len * 8;
LE_32C(ptr1, a); LE_32C(ptr1, a);
if (a < (len << 3)) if (a < (uint32_t)(len << 3))
{ {
lprintf("not verified: (len << 3) > a true\n"); lprintf("not verified: (len << 3) > a true\n");
ptr2 += 4; ptr2 += 4;
...@@ -228,14 +228,14 @@ static void call_hash (char *key, char *challenge, int len) { ...@@ -228,14 +228,14 @@ static void call_hash (char *key, char *challenge, int len) {
LE_32C(ptr2, tmp); LE_32C(ptr2, tmp);
a = 64 - b; a = 64 - b;
c = 0; c = 0;
if (a <= len) if (a <= (uint32_t)len)
{ {
memcpy(key+b+24, challenge, a); memcpy(key+b+24, challenge, a);
hash(key, key+24); hash(key, key+24);
c = a; c = a;
d = c + 0x3f; d = c + 0x3f;
while ( d < len ) { while ( d < (uint32_t)len ) {
lprintf("not verified: while ( d < len )\n"); lprintf("not verified: while ( d < len )\n");
hash(key, challenge+d-0x3f); hash(key, challenge+d-0x3f);
d += 64; d += 64;
...@@ -457,7 +457,7 @@ rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t bandwidt ...@@ -457,7 +457,7 @@ rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t bandwidt
header->data=rmff_new_dataheader(0,0); header->data=rmff_new_dataheader(0,0);
if( !header->data ) goto error; if( !header->data ) goto error;
header->streams = (rmff_mdpr_t*)malloc(sizeof(rmff_mdpr_t*)*(desc->stream_count+1)); header->streams = (rmff_mdpr_t**) malloc(sizeof(rmff_mdpr_t*)*(desc->stream_count+1));
if( !header->streams ) goto error; if( !header->streams ) goto error;
memset(header->streams, 0, sizeof(rmff_mdpr_t*)*(desc->stream_count+1)); memset(header->streams, 0, sizeof(rmff_mdpr_t*)*(desc->stream_count+1));
......
...@@ -458,7 +458,7 @@ int rtsp_connect( rtsp_client_t *rtsp, const char *psz_mrl, ...@@ -458,7 +458,7 @@ int rtsp_connect( rtsp_client_t *rtsp, const char *psz_mrl,
rtsp_t *s; rtsp_t *s;
char *mrl_ptr; char *mrl_ptr;
char *slash, *colon; char *slash, *colon;
int hostend, pathbegin, i; unsigned int hostend, pathbegin, i;
if( !psz_mrl ) return -1; if( !psz_mrl ) return -1;
s = malloc( sizeof(rtsp_t) ); s = malloc( sizeof(rtsp_t) );
......
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