From aded13c23b29033769b54120973c097caf998bf5 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Fri, 16 Dec 2016 17:45:00 +0000 Subject: Eliminate some gcc warnings about 'unused variables', mostly by adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately) --- sbin/umount/umount.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sbin/umount') diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c index 5278ecfd834..570d18414c3 100644 --- a/sbin/umount/umount.c +++ b/sbin/umount/umount.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umount.c,v 1.26 2015/01/16 06:40:01 deraadt Exp $ */ +/* $OpenBSD: umount.c,v 1.27 2016/12/16 17:44:59 krw Exp $ */ /* $NetBSD: umount.c,v 1.16 1996/05/11 14:13:55 mycroft Exp $ */ /*- @@ -145,11 +145,13 @@ int umountfs(char *oname) { struct hostent *hp; +#ifndef NO_NFS struct sockaddr_in saddr; - struct stat sb; struct timeval pertry, try; CLIENT *clp; int so; +#endif + struct stat sb; char *delimp, *hostp, *mntpt; char *name, *newname, rname[PATH_MAX], type[MFSNAMELEN]; -- cgit v1.2.3