浏览代码

modules/lcr and modules_k/nathelper: fixed compiler warnings

- Fixed compiler warnings that went earlier unnoticed, because I didn't
  have -Wall gcc option.
Juha Heinanen 15 年之前
父节点
当前提交
8b53323dde
共有 2 个文件被更改,包括 1 次插入5 次删除
  1. 1 1
      modules/lcr/lcr_mod.c
  2. 0 4
      modules_k/nathelper/nathelper.c

+ 1 - 1
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;
 	}
     }

+ 0 - 4
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;