dhclient(8): Raise WARNS to 2 and fix a warning.
authorSascha Wildner <saw@online.de>
Tue, 24 Feb 2009 02:24:28 +0000 (03:24 +0100)
committerSascha Wildner <saw@online.de>
Tue, 24 Feb 2009 02:24:28 +0000 (03:24 +0100)
sbin/dhclient/Makefile
sbin/dhclient/dhclient.c

index 82b1f7a..734cd0a 100644 (file)
@@ -40,7 +40,7 @@ SRCS= dhclient.c clparse.c dispatch.c bpf.c options.c \
 PROG=  dhclient
 MAN=   dhclient.8 dhclient.conf.5 dhclient.leases.5 dhclient-script.8
 
-WARNS?=        0
+WARNS?=        2
 
 beforeinstall:
        ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
index 501de5e..1d78829 100644 (file)
@@ -149,7 +149,7 @@ get_ifa(char *cp, int n)
 
        return (NULL);
 }
-struct iaddr defaddr = { 4, {NULL} }; /* NULL is for silence warnings */
+struct iaddr defaddr = { .len = 4 }; /* NULL is for silence warnings */
 
 /* ARGSUSED */
 void