浏览代码

core/ser_stun.c: fixed compile warnings

Juha Heinanen 13 年之前
父节点
当前提交
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);