Browse code

- 64 bit warnings cleanups

Andrei Pelinescu-Onciul authored on 20/08/2003 17:05:23
Showing 1 changed files
... ...
@@ -239,14 +239,14 @@ char* decode_mime_type(char *start, char *end, unsigned int *mime_type)
239 239
 	/* check the format of the decoded mime */
240 240
 	if ((*mime_type)>>16==TYPE_ALL && ((*mime_type)&0x00ff)!=SUBTYPE_ALL) {
241 241
 		LOG(L_ERR,"ERROR:decode_mine_type: invalid mime format found "
242
-			" <*/submime> in [%.*s]!!\n", end-start,start);
242
+			" <*/submime> in [%.*s]!!\n", (int)(end-start),start);
243 243
 		return 0;
244 244
 	}
245 245
 
246 246
 	return p;
247 247
 error:
248 248
 	LOG(L_ERR,"ERROR:decode_mine_type: parse error near in [%.*s] char"
249
-		"[%d][%c] offset=%d\n", end-start,start,*p,*p,(int)(p-start));
249
+		"[%d][%c] offset=%d\n", (int)(end-start),start,*p,*p,(int)(p-start));
250 250
 	return 0;
251 251
 }
252 252
 
... ...
@@ -293,7 +293,7 @@ int parse_content_type_hdr( struct sip_msg *msg )
293 293
 		goto error;
294 294
 	}
295 295
 
296
-	msg->content_type->parsed = (void*)mime;
296
+	msg->content_type->parsed = (void*)(long)mime;
297 297
 	return mime;
298 298
 
299 299
 error:
... ...
@@ -350,8 +350,8 @@ int parse_accept_hdr( struct sip_msg *msg )
350 350
 		if (*ret!=',' || ret+1==end) {
351 351
 			LOG(L_ERR,"ERROR:parse_accept_hdr: parse error between mimes at "
352 352
 				"char <%x> (offset=%d) in <%.*s>!\n",
353
-				*ret,ret-msg->accept->body.s,
354
-				msg->accept->body.len,msg->accept->body.s);
353
+				*ret, (int)(ret-msg->accept->body.s),
354
+				msg->accept->body.len, msg->accept->body.s);
355 355
 			goto error;
356 356
 		}
357 357
 		/* skip the ',' */