Module Name:    src
Committed By:   ozaki-r
Date:           Mon Aug 31 09:21:56 UTC 2015

Modified Files:
        src/sys/netinet: in.c

Log Message:
Fix building kernels w/o DIAGNOSTIC


To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/sys/netinet/in.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/in.c
diff -u src/sys/netinet/in.c:1.159 src/sys/netinet/in.c:1.160
--- src/sys/netinet/in.c:1.159	Mon Aug 31 08:05:20 2015
+++ src/sys/netinet/in.c	Mon Aug 31 09:21:55 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: in.c,v 1.159 2015/08/31 08:05:20 ozaki-r Exp $	*/
+/*	$NetBSD: in.c,v 1.160 2015/08/31 09:21:55 ozaki-r 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.159 2015/08/31 08:05:20 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.160 2015/08/31 09:21:55 ozaki-r Exp $");
 
 #include "arp.h"
 
@@ -1604,7 +1604,7 @@ in_lltable_match_prefix(const struct soc
 static void
 in_lltable_free_entry(struct lltable *llt, struct llentry *lle)
 {
-	struct ifnet *ifp;
+	struct ifnet *ifp __diagused;
 	size_t pkts_dropped;
 
 	LLE_WLOCK_ASSERT(lle);
@@ -1749,7 +1749,7 @@ in_lltable_delete(struct lltable *llt, u
     const struct sockaddr *l3addr)
 {
 	const struct sockaddr_in *sin = (const struct sockaddr_in *)l3addr;
-	struct ifnet *ifp = llt->llt_ifp;
+	struct ifnet *ifp __diagused = llt->llt_ifp;
 	struct llentry *lle;
 
 	IF_AFDATA_WLOCK_ASSERT(ifp);

Reply via email to