Procházet zdrojové kódy

msrp: fix compile warnings for 32b

Daniel-Constantin Mierla před 13 roky
rodič
revize
22eb98280f
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      modules/msrp/msrp_parser.c

+ 2 - 2
modules/msrp/msrp_parser.c

@@ -487,7 +487,7 @@ int msrp_parse_uri(char *start, int len, msrp_uri_t *uri)
 	if(uri->host.len<=0)
 	{
 		LM_ERR("bad host part in [%.*s] at [%ld]\n",
-				len, start, s - start);
+				len, start, (long)(s - start));
 		goto error;
 	}
 	if(uri->port.len <= 0)
@@ -498,7 +498,7 @@ int msrp_parse_uri(char *start, int len, msrp_uri_t *uri)
 		if(uri->port_no<1 || uri->port_no > ((1<<16)-1))
 		{
 			LM_ERR("bad port part in [%.*s] at [%ld]\n",
-					len, start, s - start);
+					len, start, (long)(s - start));
 			goto error;
 		}
 	}