[sr-dev] git:kamailio_3.0: modules/lcr and modules_k/nathelper: fixed compiler warnings

Daniel-Constantin Mierla miconda at gmail.com
Sun Jan 3 12:29:28 CET 2010


Module: sip-router
Branch: kamailio_3.0
Commit: 8bf879a1d827f6c8210e704c2f1c149e27309ef2
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8bf879a1d827f6c8210e704c2f1c149e27309ef2

Author: Juha Heinanen <jh at tutpro.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Dec 30 19:22:14 2009 +0200

modules/lcr and modules_k/nathelper: fixed compiler warnings

- Fixed compiler warnings that went earlier unnoticed, because I didn't
  have -Wall gcc option.
(cherry picked from commit 8b53323dde13c166676378f21f402a79d36b5a23)

---

 modules/lcr/lcr_mod.c           |    2 +-
 modules_k/nathelper/nathelper.c |    4 ----
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c
index 7eb3747..9748024 100644
--- a/modules/lcr/lcr_mod.c
+++ b/modules/lcr/lcr_mod.c
@@ -2054,7 +2054,7 @@ static int next_gw(struct sip_msg* _m, char* _s1, char* _s2)
 	uri_str.len = r_uri_len;
 	LM_DBG("appending branch <%.*s>\n", uri_str.len, uri_str.s);
 	if (append_branch(_m, &uri_str, 0, 0, Q_UNSPECIFIED, 0, 0) == -1) {
-	    LM_ERR("when appending branch <%.*s>\n", rval);
+	    LM_ERR("when appending branch <%.*s>\n", uri_str.len, uri_str.s);
 	    return -1;
 	}
     }
diff --git a/modules_k/nathelper/nathelper.c b/modules_k/nathelper/nathelper.c
index 27ef349..90fca05 100644
--- a/modules_k/nathelper/nathelper.c
+++ b/modules_k/nathelper/nathelper.c
@@ -283,8 +283,6 @@ static int add_contact_alias_f(struct sip_msg *, char *, char *);
 static int handle_ruri_alias_f(struct sip_msg *, char *, char *);
 static int pv_get_rr_count_f(struct sip_msg *, pv_param_t *, pv_value_t *);
 static int pv_get_rr_top_count_f(struct sip_msg *, pv_param_t *, pv_value_t *);
-static int rr_count_f(struct sip_msg *, char *, char *);
-static int rr_top_count_f(struct sip_msg *, char *, char *);
 static int fix_nated_sdp_f(struct sip_msg *, char *, char *);
 static int extract_mediaip(str *, str *, int *, char *);
 static int extract_mediainfo(str *, str *, str *);
@@ -1643,8 +1641,6 @@ static int
 pv_get_rr_top_count_f(struct sip_msg *msg, pv_param_t *param,
 		      pv_value_t *res)
 {
-    unsigned int count;
-    struct hdr_field *header;
     str uri;
     struct sip_uri puri;
 




More information about the sr-dev mailing list