2
0
Эх сурвалжийг харах

core/ser_stun.c: fixed compile warnings

Juha Heinanen 13 жил өмнө
parent
commit
4bdbca2dc4
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  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);