Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Appease gcc.
details: https://anonhg.NetBSD.org/src/rev/95cb806b8b16
branches: trunk
changeset: 337884:95cb806b8b16
user: roy <roy%NetBSD.org@localhost>
date: Sat May 02 15:22:03 2015 +0000
description:
Appease gcc.
diffstat:
sys/netinet/in.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 1b6f1256e5c4 -r 95cb806b8b16 sys/netinet/in.c
--- a/sys/netinet/in.c Sat May 02 15:18:36 2015 +0000
+++ b/sys/netinet/in.c Sat May 02 15:22:03 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in.c,v 1.152 2015/05/02 14:41:32 roy Exp $ */
+/* $NetBSD: in.c,v 1.153 2015/05/02 15:22:03 roy Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.152 2015/05/02 14:41:32 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.153 2015/05/02 15:22:03 roy Exp $");
#include "opt_inet.h"
#include "opt_inet_conf.h"
@@ -370,6 +370,7 @@
if (ifp != NULL)
IFP_TO_IA(ifp, ia);
+ hostIsNew = 1; /* moved here to appease gcc */
switch (cmd) {
case SIOCAIFADDR:
case SIOCDIFADDR:
@@ -396,7 +397,6 @@
}
/* FALLTHROUGH */
case SIOCSIFADDR:
- hostIsNew = 1;
if (ia == NULL || ia->ia_addr.sin_family != AF_INET)
;
else if (ifra->ifra_addr.sin_len == 0) {
Home |
Main Index |
Thread Index |
Old Index