summaryrefslogtreecommitdiffstats
path: root/sbin/mount_std
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2006-09-13 04:50:44 +0000
committercharnier <charnier@FreeBSD.org>2006-09-13 04:50:44 +0000
commit200c31fad8f45e4d1c18e82da3877326df0aceb4 (patch)
treeb0f620ab17e4b5c85e1af8577105e1bed4049f5b /sbin/mount_std
parent8b66317cb4ac9de9b7e7f9e37d1b39a1e4495e78 (diff)
downloadFreeBSD-src-200c31fad8f45e4d1c18e82da3877326df0aceb4.zip
FreeBSD-src-200c31fad8f45e4d1c18e82da3877326df0aceb4.tar.gz
Reduce the number of errors under WARNS=6
Diffstat (limited to 'sbin/mount_std')
-rw-r--r--sbin/mount_std/mount_std.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/sbin/mount_std/mount_std.c b/sbin/mount_std/mount_std.c
index ec8041d..3f292b4 100644
--- a/sbin/mount_std/mount_std.c
+++ b/sbin/mount_std/mount_std.c
@@ -37,10 +37,8 @@ static const char copyright[] =
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/mount.h>
@@ -68,15 +66,13 @@ static volatile sig_atomic_t caughtsig;
static void usage(void) __dead2;
static void
-catchsig(int s)
+catchsig(int s __unused)
{
caughtsig = 1;
}
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int ch, mntflags;
char mntpath[MAXPATHLEN];
@@ -154,7 +150,7 @@ main(argc, argv)
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr,
"usage: mount_%s [-o options] what_to_mount mount_point\n",
OpenPOWER on IntegriCloud