[sr-dev] git:master: ipops: fix warning: variable âtâet but?==?UTF-8?Q? not used [-Wunused-but-set-variable]

Ovidiu Sas osas at voipembedded.com
Tue Sep 17 00:21:30 CEST 2013


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

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Sun Sep 15 18:06:18 2013 -0400

ipops: fix warning: variable âtâet but not used [-Wunused-but-set-variable]

---

 modules/ipops/ipops_mod.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/ipops/ipops_mod.c b/modules/ipops/ipops_mod.c
index c87a0eb..d90aaa3 100644
--- a/modules/ipops/ipops_mod.c
+++ b/modules/ipops/ipops_mod.c
@@ -703,7 +703,6 @@ static int w_dns_int_match_ip(sip_msg_t *msg, char *hnp, char *ipp)
 	str ips;
 	struct hostent* he;
 	char ** h;
-	int ret;
 
 	if (fixup_get_svalue(msg, (gparam_p)hnp, &hns))
 	{
@@ -729,7 +728,7 @@ static int w_dns_int_match_ip(sip_msg_t *msg, char *hnp, char *ipp)
 		DBG("could not resolve %s\n", hns.s);
 		return -4;
 	}
-	ret = 0;
+
 	if (he->h_addrtype==ipa->af)
 	{
 		for(h=he->h_addr_list; (*h); h++)




More information about the sr-dev mailing list