瀏覽代碼

fix gcc 4.2.1 warning: initialized field overwritten

tags/v0.9.3
Holger Lubitz 17 年之前
父節點
當前提交
fdd5fbe3ae
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1
    4
      src/net/ipv6.c

+ 1
- 4
src/net/ipv6.c 查看文件

@@ -19,10 +19,7 @@ struct net_protocol ipv6_protocol;
19 19
 
20 20
 /* Unspecified IP6 address */
21 21
 static struct in6_addr ip6_none = {
22
-        .in6_u.u6_addr32[0] = 0,
23
-        .in6_u.u6_addr32[1] = 0,
24
-        .in6_u.u6_addr32[2] = 0,
25
-        .in6_u.u6_addr32[3] = 0,
22
+        .in6_u.u6_addr32 = { 0,0,0,0 }
26 23
 };
27 24
 
28 25
 /** An IPv6 routing table entry */

Loading…
取消
儲存