Browse code

msrp: fix compile warnings for 32b

Daniel-Constantin Mierla authored on 07/11/2012 22:56:49
Showing 1 changed files
... ...
@@ -487,7 +487,7 @@ int msrp_parse_uri(char *start, int len, msrp_uri_t *uri)
487 487
 	if(uri->host.len<=0)
488 488
 	{
489 489
 		LM_ERR("bad host part in [%.*s] at [%ld]\n",
490
-				len, start, s - start);
490
+				len, start, (long)(s - start));
491 491
 		goto error;
492 492
 	}
493 493
 	if(uri->port.len <= 0)
... ...
@@ -498,7 +498,7 @@ int msrp_parse_uri(char *start, int len, msrp_uri_t *uri)
498 498
 		if(uri->port_no<1 || uri->port_no > ((1<<16)-1))
499 499
 		{
500 500
 			LM_ERR("bad port part in [%.*s] at [%ld]\n",
501
-					len, start, s - start);
501
+					len, start, (long)(s - start));
502 502
 			goto error;
503 503
 		}
504 504
 	}