Module: kamailio
Branch: master
Commit: f6921b92d382db3c0a72bd1d97eb46d1f4aee2d7
URL:
https://github.com/kamailio/kamailio/commit/f6921b92d382db3c0a72bd1d97eb46d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-08-22T12:03:52+02:00
sdpops: cast in dbg message to avoid compile warning on 32b systems
---
Modified: src/modules/sdpops/sdpops_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f6921b92d382db3c0a72bd1d97eb46d…
Patch:
https://github.com/kamailio/kamailio/commit/f6921b92d382db3c0a72bd1d97eb46d…
---
diff --git a/src/modules/sdpops/sdpops_mod.c b/src/modules/sdpops/sdpops_mod.c
index b47f824e33..b317c0ac9b 100644
--- a/src/modules/sdpops/sdpops_mod.c
+++ b/src/modules/sdpops/sdpops_mod.c
@@ -512,8 +512,9 @@ int sdp_remove_line_by_prefix(sip_msg_t* msg, str* prefix, str*
media)
LM_DBG("range for media type %.*s: %ld - %ld\n",
sdp_stream->media.len, sdp_stream->media.s,
- sdp_stream->raw_stream.s - body.s,
- sdp_stream->raw_stream.s + sdp_stream->raw_stream.len - body.s
+ (long int)(sdp_stream->raw_stream.s - body.s),
+ (long int)(sdp_stream->raw_stream.s
+ + sdp_stream->raw_stream.len - body.s)
);
found +=
sdp_remove_line_lump_by_prefix(msg,&(sdp_stream->raw_stream),prefix);