]> git.sesse.net Git - vlc/commitdiff
Fix compiler warnings
authorJean-Paul Saman <jpsaman@videolan.org>
Sun, 25 Sep 2005 11:16:43 +0000 (11:16 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sun, 25 Sep 2005 11:16:43 +0000 (11:16 +0000)
modules/access/rtsp/access.c
modules/access/rtsp/real.c
modules/access/rtsp/rtsp.c

index 7ae26f0d9e698d634013754e049d96fc9f416d8e..1f81c1c132e3f905d13e52115291e812db82bd6b 100644 (file)
@@ -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 )
 {
-    access_sys_t *p_sys = p_access->p_sys;
     vlc_bool_t   *pb_bool;
     int          *pi_int;
     int64_t      *pi_64;
index 29026cc21cc4b67c2e4ca60d6f3393aa2479eeff..c5f88d347bb35c66862ec4e63c9e553b165e56aa 100644 (file)
@@ -218,7 +218,7 @@ static void call_hash (char *key, char *challenge, int len) {
   a += len * 8;
   LE_32C(ptr1, a);
 
-  if (a < (len << 3))
+  if (a < (uint32_t)(len << 3))
   {
     lprintf("not verified: (len << 3) > a true\n");
     ptr2 += 4;
@@ -228,14 +228,14 @@ static void call_hash (char *key, char *challenge, int len) {
   LE_32C(ptr2, tmp);
   a = 64 - b;
   c = 0;
-  if (a <= len)
+  if (a <= (uint32_t)len)
   {
     memcpy(key+b+24, challenge, a);
     hash(key, key+24);
     c = a;
     d = c + 0x3f;
 
-    while ( d < len ) {
+    while ( d < (uint32_t)len ) {
       lprintf("not verified:  while ( d < len )\n");
       hash(key, challenge+d-0x3f);
       d += 64;
@@ -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);
     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;
 
     memset(header->streams, 0, sizeof(rmff_mdpr_t*)*(desc->stream_count+1));
index dfcb6f3ca6493884046391685f412582f47b061b..c56ab6d90116e148ad4da211a37c9919679db038 100644 (file)
@@ -458,7 +458,7 @@ int rtsp_connect( rtsp_client_t *rtsp, const char *psz_mrl,
     rtsp_t *s;
     char *mrl_ptr;
     char *slash, *colon;
-    int hostend, pathbegin, i;
+    unsigned int hostend, pathbegin, i;
 
     if( !psz_mrl ) return -1;
     s = malloc( sizeof(rtsp_t) );