[sr-dev] git:master: msrp: fix compile warnings for 32b

Daniel-Constantin Mierla miconda at gmail.com
Thu Nov 8 07:39:57 CET 2012


Module: sip-router
Branch: master
Commit: 22eb98280f82fc10202862097d954d099b605700
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=22eb98280f82fc10202862097d954d099b605700

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Nov  7 23:56:49 2012 +0100

msrp: fix compile warnings for 32b

---

 modules/msrp/msrp_parser.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/msrp/msrp_parser.c b/modules/msrp/msrp_parser.c
index 3f7e336..eb275e1 100644
--- a/modules/msrp/msrp_parser.c
+++ b/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;
 		}
 	}




More information about the sr-dev mailing list