diff options
author | steve <steve@FreeBSD.org> | 1997-08-24 21:02:51 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1997-08-24 21:02:51 +0000 |
commit | 99d48d545adcc46707f43d98599d352fe3c16792 (patch) | |
tree | 93034739ccfce81f14e603ef907382b7f42b847e /sbin/mount/mount_ufs.c | |
parent | 30f7c300787da5cd36c457b534171c77ea9ea74d (diff) | |
download | FreeBSD-src-99d48d545adcc46707f43d98599d352fe3c16792.zip FreeBSD-src-99d48d545adcc46707f43d98599d352fe3c16792.tar.gz |
Try to avoid mounting filesystems multiple times. Also while
I'm here do some -Wall cleaning.
PR: kern/1839
Reviewed and corrected by: joerg
Diffstat (limited to 'sbin/mount/mount_ufs.c')
-rw-r--r-- | sbin/mount/mount_ufs.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c index b6344d1..58a1add 100644 --- a/sbin/mount/mount_ufs.c +++ b/sbin/mount/mount_ufs.c @@ -32,13 +32,18 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1993, 1994\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint +#if 0 static char sccsid[] = "@(#)mount_ufs.c 8.4 (Berkeley) 4/26/95"; +#else +static const char rcsid[] = + "$Id$"; +#endif #endif /* not lint */ #include <sys/param.h> @@ -53,9 +58,10 @@ static char sccsid[] = "@(#)mount_ufs.c 8.4 (Berkeley) 4/26/95"; #include <ufs/ufs/ufsmount.h> +#include "extern.h" #include "mntopts.h" -void ufs_usage __P((void)); +static void ufs_usage __P((void)); static struct mntopt mopts[] = { MOPT_STDOPTS, @@ -143,7 +149,7 @@ mount_ufs(argc, argv) return (0); } -void +static void ufs_usage() { (void)fprintf(stderr, "usage: mount_ufs [-o options] special node\n"); |