aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount/mount_ufs.c
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1997-08-24 21:02:51 +0000
committerSteve Price <steve@FreeBSD.org>1997-08-24 21:02:51 +0000
commitfba1c154b289460fbbbfa7c2da35328882dbd595 (patch)
tree4542ac0e257b9dcc355baeddafdfb7a6165fad0e /sbin/mount/mount_ufs.c
parent8ee0110a449904883ddcc5dea6f61a690bab1d5a (diff)
downloadsrc-fba1c154b289460fbbbfa7c2da35328882dbd595.tar.gz
src-fba1c154b289460fbbbfa7c2da35328882dbd595.zip
Try to avoid mounting filesystems multiple times. Also while
I'm here do some -Wall cleaning. PR: kern/1839 Reviewed and corrected by: joerg
Notes
Notes: svn path=/head/; revision=28671
Diffstat (limited to 'sbin/mount/mount_ufs.c')
-rw-r--r--sbin/mount/mount_ufs.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c
index b6344d125963..58a1addc2332 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");