Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/dist fix bogus gcc unitialized warning



details:   https://anonhg.NetBSD.org/src/rev/cfd0b9b9d8cc
branches:  trunk
changeset: 340086:cfd0b9b9d8cc
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 22 05:45:57 2015 +0000

description:
fix bogus gcc unitialized warning

diffstat:

 external/bsd/dhcpcd/dist/dhcp.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r fb60a9f7b747 -r cfd0b9b9d8cc external/bsd/dhcpcd/dist/dhcp.c
--- a/external/bsd/dhcpcd/dist/dhcp.c   Sat Aug 22 02:23:58 2015 +0000
+++ b/external/bsd/dhcpcd/dist/dhcp.c   Sat Aug 22 05:45:57 2015 +0000
@@ -1,5 +1,5 @@
 #include <sys/cdefs.h>
- __RCSID("$NetBSD: dhcp.c,v 1.33 2015/08/21 10:39:00 roy Exp $");
+ __RCSID("$NetBSD: dhcp.c,v 1.34 2015/08/22 05:45:57 christos Exp $");
 
 /*
  * dhcpcd - DHCP client daemon
@@ -713,7 +713,7 @@
 dhcp_get_mtu(const struct interface *ifp)
 {
        const struct dhcp_message *dhcp;
-       uint16_t mtu;
+       uint16_t mtu = 0;       // XXX: gcc
 
        if ((dhcp = D_CSTATE(ifp)->new) == NULL ||
            has_option_mask(ifp->options->nomask, DHO_MTU) ||



Home | Main Index | Thread Index | Old Index