Explorar o código

core/ser_stun.c: fixed compile warnings

Juha Heinanen %!s(int64=13) %!d(string=hai) anos
pai
achega
4bdbca2dc4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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);