Browse Source

fix gcc 4.2.1 warning: initialized field overwritten

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
fdd5fbe3ae
1 changed files with 1 additions and 4 deletions
  1. 1
    4
      src/net/ipv6.c

+ 1
- 4
src/net/ipv6.c View File

@@ -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…
Cancel
Save