make this build again without having trunk
authorcegger <cegger@NetBSD.org>
Mon, 27 Oct 2008 13:24:01 +0000
branchtrunk
changeset 174542 824dec905af3
parent 174541 181fe45f03e7
child 174543 48499dbd97da
make this build again without having NFS_BOOT_BOOTSTATIC, NFS_BOOT_BOOTP, NFS_BOOT_DHCP or NFS_BOOT_BOOTPARAM defined. I uncovered this case when compiling rump.
sys/nfs/nfs_boot.c
--- a/sys/nfs/nfs_boot.c	Mon Oct 27 10:58:22 2008 +0000
+++ b/sys/nfs/nfs_boot.c	Mon Oct 27 13:24:01 2008 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: nfs_boot.c,v 1.76 2008/10/27 10:58:22 cegger Exp $	*/
+/*	$NetBSD: nfs_boot.c,v 1.77 2008/10/27 13:24:01 cegger Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1997 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_boot.c,v 1.76 2008/10/27 10:58:22 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_boot.c,v 1.77 2008/10/27 13:24:01 cegger Exp $");
 
 #include "opt_nfs.h"
 #include "opt_tftproot.h"
@@ -106,7 +106,12 @@
 {
 	struct ifnet *ifp;
 	int error = 0;
-	int flags = 0;
+	int flags;
+
+	/* Explicitly necessary or build fails
+	 * due to unused variable, otherwise.
+	 */
+	flags = 0;
 
 	/*
 	 * Find the network interface.