aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount_hpfs/mount_hpfs.c
diff options
context:
space:
mode:
authorUlrich Spörlein <uqs@FreeBSD.org>2010-02-27 10:14:59 +0000
committerUlrich Spörlein <uqs@FreeBSD.org>2010-02-27 10:14:59 +0000
commit9ee81f583a281b05315ef56176fb31a179c5aece (patch)
treefbbf20570129906479ae54fab34b9921a8abff0f /sbin/mount_hpfs/mount_hpfs.c
parentc1752bcd65f84d48699c2f95f7a4de4fdfd5d167 (diff)
downloadsrc-9ee81f583a281b05315ef56176fb31a179c5aece.tar.gz
src-9ee81f583a281b05315ef56176fb31a179c5aece.zip
mount_hpfs(8): make WARNS=6 clean
PR: bin/139995 Approved by: ed (co-mentor)
Notes
Notes: svn path=/head/; revision=204403
Diffstat (limited to 'sbin/mount_hpfs/mount_hpfs.c')
-rw-r--r--sbin/mount_hpfs/mount_hpfs.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/sbin/mount_hpfs/mount_hpfs.c b/sbin/mount_hpfs/mount_hpfs.c
index a9a87e238881..0106377c7454 100644
--- a/sbin/mount_hpfs/mount_hpfs.c
+++ b/sbin/mount_hpfs/mount_hpfs.c
@@ -60,9 +60,7 @@ static void usage(void) __dead2;
static void load_u2wtable(struct hpfs_args *, char *);
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char *argv[])
{
struct hpfs_args args;
struct stat sb;
@@ -150,8 +148,7 @@ main(argc, argv)
}
gid_t
-a_gid(s)
- char *s;
+a_gid(char *s)
{
struct group *gr;
char *gname;
@@ -170,8 +167,7 @@ a_gid(s)
}
uid_t
-a_uid(s)
- char *s;
+a_uid(char *s)
{
struct passwd *pw;
char *uname;
@@ -190,8 +186,7 @@ a_uid(s)
}
mode_t
-a_mask(s)
- char *s;
+a_mask(char *s)
{
int done, rv=0;
char *ep;
@@ -207,16 +202,14 @@ a_mask(s)
}
void
-usage()
+usage(void)
{
fprintf(stderr, "usage: mount_hpfs [-u user] [-g group] [-m mask] bdev dir\n");
exit(EX_USAGE);
}
void
-load_u2wtable (pargs, name)
- struct hpfs_args *pargs;
- char *name;
+load_u2wtable (struct hpfs_args *pargs, char *name)
{
FILE *f;
int i, code;