From 200c31fad8f45e4d1c18e82da3877326df0aceb4 Mon Sep 17 00:00:00 2001 From: charnier Date: Wed, 13 Sep 2006 04:50:44 +0000 Subject: Reduce the number of errors under WARNS=6 --- sbin/mount_std/mount_std.c | 14 +++++--------- 1 file 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 +__FBSDID("$FreeBSD$"); #include #include @@ -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", -- cgit v1.1