Browse code

msg_translator.c: got rid of compiler warning

- Many more to go before 3.3 release.

Juha Heinanen authored on 08/06/2012 20:10:43
Showing 1 changed files
... ...
@@ -195,16 +195,20 @@ static int check_via_address(struct ip_addr* ip, str *name,
195 195
 	struct hostent* he;
196 196
 	int i;
197 197
 	char* s;
198
+	#ifdef USE_IPV6
198 199
 	int len;
200
+	#endif
199 201
 
200 202
 	/* maybe we are lucky and name it's an ip */
201 203
 	s=ip_addr2a(ip);
202 204
 	if (s){
203 205
 		DBG("check_via_address(%s, %.*s, %d)\n",
204 206
 			s, name->len, name->s, resolver);
205
-		len=strlen(s);
206 207
 
207 208
 	#ifdef USE_IPV6
209
+
210
+		len=strlen(s);
211
+
208 212
 		/* check if name->s is an ipv6 address or an ipv6 address ref. */
209 213
 		if ((ip->af==AF_INET6) &&
210 214
 				(	((len==name->len)&&(strncasecmp(name->s, s, name->len)==0))