In Bug 209, bernhardf writes:
authorMike Frysinger <vapier@gentoo.org>
Sat, 16 Apr 2005 04:17:39 +0000 (04:17 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 16 Apr 2005 04:17:39 +0000 (04:17 -0000)
struct named {
    named_field: init,
};
appear to be depraced by now; rather use C{99} format as in
struct named {
    .named_field = init,
};

networking/udhcp/dhcpc.c

index 95fa815..8009bec 100644 (file)
@@ -58,18 +58,18 @@ static int listen_mode;
 
 struct client_config_t client_config = {
        /* Default options. */
-       abort_if_no_lease: 0,
-       foreground: 0,
-       quit_after_lease: 0,
-       background_if_no_lease: 0,
-       interface: "eth0",
-       pidfile: NULL,
-       script: DEFAULT_SCRIPT,
-       clientid: NULL,
-       hostname: NULL,
-       fqdn: NULL,
-       ifindex: 0,
-       arp: "\0\0\0\0\0\0",            /* appease gcc-3.0 */
+       .abort_if_no_lease = 0,
+       .foreground = 0,
+       .quit_after_lease = 0,
+       .background_if_no_lease = 0,
+       .interface = "eth0",
+       .pidfile = NULL,
+       .script = DEFAULT_SCRIPT,
+       .clientid = NULL,
+       .hostname = NULL,
+       .fqdn = NULL,
+       .ifindex = 0,
+       .arp = "\0\0\0\0\0\0",          /* appease gcc-3.0 */
 };
 
 #ifndef IN_BUSYBOX