[sr-dev] git:master: parser/sdp: fix some compile warnings

Ovidiu Sas osas at voipembedded.com
Wed Sep 29 20:36:13 CEST 2010


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

Author: root <root at centos.(none)>
Committer: root <root at centos.(none)>
Date:   Wed Sep 29 07:38:05 2010 -0400

parser/sdp: fix some compile warnings

---

 parser/sdp/sdp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/parser/sdp/sdp.c b/parser/sdp/sdp.c
index 55b3b79..b35447e 100644
--- a/parser/sdp/sdp.c
+++ b/parser/sdp/sdp.c
@@ -694,7 +694,7 @@ int parse_sdp(struct sip_msg* _m)
 			res = parse_sdp_session(&body, 0, NULL, (sdp_info_t*)_m->body);
 			if (res != 0) {
 				LM_DBG("free_sdp\n");
-				free_sdp((sdp_info_t**)&_m->body);
+				free_sdp((sdp_info_t**)(void*)&_m->body);
 			}
 			return res;
 			break;
@@ -716,7 +716,7 @@ int parse_sdp(struct sip_msg* _m)
 				}
 				res = parse_mixed_content(&body, mp_delimiter, (sdp_info_t*)_m->body);
 				if (res != 0) {
-					free_sdp((sdp_info_t**)&_m->body);
+					free_sdp((sdp_info_t**)(void*)&_m->body);
 				}
 				return res;
 			} else {




More information about the sr-dev mailing list