Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/net Additionally pullup src/sys/net/if_llatbl.c r1.30...
details: https://anonhg.NetBSD.org/src/rev/ba2f82f42be0
branches: netbsd-8
changeset: 435109:ba2f82f42be0
user: martin <martin%NetBSD.org@localhost>
date: Wed Jul 11 16:50:46 2018 +0000
description:
Additionally pullup src/sys/net/if_llatbl.c r1.30 to fix build fallout
from previous, requested by both ozaki-r (ticket #918) and kre (ticket #920):
Update previous so that there is no unused (but assigned) variable
left when there is no ARP. Thanks gcc!
diffstat:
sys/net/if_llatbl.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r e70ea385d962 -r ba2f82f42be0 sys/net/if_llatbl.c
--- a/sys/net/if_llatbl.c Tue Jul 10 15:37:42 2018 +0000
+++ b/sys/net/if_llatbl.c Wed Jul 11 16:50:46 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_llatbl.c,v 1.18.6.6 2018/07/10 15:31:33 martin Exp $ */
+/* $NetBSD: if_llatbl.c,v 1.18.6.7 2018/07/11 16:50:46 martin Exp $ */
/*
* Copyright (c) 2004 Luigi Rizzo, Alessandro Cerri. All rights reserved.
* Copyright (c) 2004-2008 Qing Li. All rights reserved.
@@ -695,12 +695,14 @@
* conditions so remove it first.
*/
if (lle != NULL) {
+#if defined(INET) && NARP > 0
size_t pkts_dropped = llentry_free(lle);
-#if defined(INET) && NARP > 0
if (dst->sa_family == AF_INET) {
arp_stat_add(ARP_STAT_DFRDROPPED,
(uint64_t)pkts_dropped);
}
+#else
+ (void) llentry_free(lle);
#endif
}
Home |
Main Index |
Thread Index |
Old Index