瀏覽代碼

- warning fixes merged from testing_0_8_12-r1

Andrei Pelinescu-Onciul 22 年之前
父節點
當前提交
1e3474c808
共有 1 個文件被更改,包括 4 次插入4 次删除
  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;