mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 12:11:08 +01:00
mount_hpfs(8): make WARNS=6 clean
PR: bin/139995 Approved by: ed (co-mentor)
This commit is contained in:
parent
c1752bcd65
commit
9ee81f583a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204403
@ -7,8 +7,7 @@ SRCS= mount_hpfs.c getmntopts.c
|
||||
MAN= mount_hpfs.8
|
||||
|
||||
MOUNT= ${.CURDIR}/../mount
|
||||
CFLAGS+=-I${MOUNT} -DHPFS
|
||||
WARNS?= 0
|
||||
CFLAGS+= -I${MOUNT} -DHPFS
|
||||
|
||||
.PATH: ${MOUNT}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user