diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-12-16 17:45:00 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-12-16 17:45:00 +0000 |
commit | aded13c23b29033769b54120973c097caf998bf5 (patch) | |
tree | 617f2298aec48e2071d9bc0dce2b625a18cff7dd /sbin/umount | |
parent | 79e58277cbefd21ba134443f11fc384fe0a22d50 (diff) |
Eliminate some gcc warnings about 'unused variables', mostly by
adding appropriate #ifdef's around declarations.
ok millert@ (with a tweak I will commit separately)
Diffstat (limited to 'sbin/umount')
-rw-r--r-- | sbin/umount/umount.c | 6 |
1 files changed, 4 insertions, 2 deletions
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]; |