Browse code

- warning fixes merged from testing_0_8_12-r1

Andrei Pelinescu-Onciul authored on 20/11/2003 20:58:56
Showing 1 changed files
... ...
@@ -263,7 +263,7 @@ int parse_content_type_hdr( struct sip_msg *msg )
263 263
 {
264 264
 	char *end;
265 265
 	char *ret;
266
-	int  mime;
266
+	unsigned int  mime;
267 267
 
268 268
 	/* is the header already found? */
269 269
 	if ( msg->content_type==0 ) {
... ...
@@ -297,7 +297,7 @@ int parse_content_type_hdr( struct sip_msg *msg )
297 297
 		goto error;
298 298
 	}
299 299
 
300
-	msg->content_type->parsed = (void*)(long)mime;
300
+	msg->content_type->parsed = (void*)(unsigned long)mime;
301 301
 	return mime;
302 302
 
303 303
 error:
... ...
@@ -311,9 +311,9 @@ error:
311 311
  *          = -1 error */
312 312
 int parse_accept_hdr( struct sip_msg *msg )
313 313
 {
314
-	static int mimes[MAX_MIMES_NR];
314
+	static unsigned int mimes[MAX_MIMES_NR];
315 315
 	int nr_mimes;
316
-	int mime;
316
+	unsigned int mime;
317 317
 	char *end;
318 318
 	char *ret;
319 319