Reduce the number of errors under WARNS=6

This commit is contained in:
Philippe Charnier 2006-09-13 04:50:44 +00:00
parent c14c65ed52
commit d402d62c89
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162262

View File

@ -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",