Module: sip-router
Branch: sr_3.0
Commit: 8b53323dde13c166676378f21f402a79d36b5a23
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8b53323…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.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.
---
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;