Browse Source

core/ser_stun.c: fixed compile warnings

Juha Heinanen 13 years ago
parent
commit
4bdbca2dc4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      ser_stun.c

+ 3 - 1
ser_stun.c

@@ -766,9 +766,11 @@ int stun_add_address_attr(struct stun_msg* res,
 						int do_xor)
 {
 	struct stun_attr attr;
-	UINT_T	 id[IP_ADDR];
 	int		 ip_struct_len;
+#ifdef USE_IPV6
+	UINT_T	 id[IP_ADDR];
 	int i;
+#endif /* USE_IPV6 */ 
 	
 	ip_struct_len = 0;
 	attr.type = htons(type);