[sr-dev] git:master: nathelper(k): 64 bit warning fix

Andrei Pelinescu-Onciul andrei at iptel.org
Tue Oct 5 20:06:31 CEST 2010


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

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Tue Oct  5 20:05:42 2010 +0200

nathelper(k): 64 bit warning fix

- "%d" in format and long arg.

---

 modules_k/nathelper/nhelpr_funcs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/nathelper/nhelpr_funcs.c b/modules_k/nathelper/nhelpr_funcs.c
index a5f1e7c..bfc3828 100644
--- a/modules_k/nathelper/nhelpr_funcs.c
+++ b/modules_k/nathelper/nhelpr_funcs.c
@@ -198,7 +198,7 @@ int extract_body(struct sip_msg *msg, str *body )
 
 	if (body->len + body->s > msg->buf + msg->len) {
 		LM_ERR("content-length exceeds packet-length by %d\n",
-				(body->len + body->s) - (msg->buf + msg->len));
+				(int)((body->len + body->s) - (msg->buf + msg->len)));
 		goto error;
 	}
 




More information about the sr-dev mailing list