Ver Fonte

- warning fixes merged from testing_0_8_12-r1

Andrei Pelinescu-Onciul há 22 anos atrás
pai
commit
1e3474c808
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      parser/parse_content.c

+ 4 - 4
parser/parse_content.c

@@ -263,7 +263,7 @@ int parse_content_type_hdr( struct sip_msg *msg )
 {
 	char *end;
 	char *ret;
-	int  mime;
+	unsigned int  mime;
 
 	/* is the header already found? */
 	if ( msg->content_type==0 ) {
@@ -297,7 +297,7 @@ int parse_content_type_hdr( struct sip_msg *msg )
 		goto error;
 	}
 
-	msg->content_type->parsed = (void*)(long)mime;
+	msg->content_type->parsed = (void*)(unsigned long)mime;
 	return mime;
 
 error:
@@ -311,9 +311,9 @@ error:
  *          = -1 error */
 int parse_accept_hdr( struct sip_msg *msg )
 {
-	static int mimes[MAX_MIMES_NR];
+	static unsigned int mimes[MAX_MIMES_NR];
 	int nr_mimes;
-	int mime;
+	unsigned int mime;
 	char *end;
 	char *ret;