- Make WARNS?= 6 clean
- Add WARNS?= 6 Approved by: stefanf, grehan (mentor)
This commit is contained in:
parent
e65b439414
commit
6449237fe6
@ -4,5 +4,6 @@ PROG= mdmfs
|
|||||||
LINKS= ${BINDIR}/${PROG} ${BINDIR}/mount_mfs
|
LINKS= ${BINDIR}/${PROG} ${BINDIR}/mount_mfs
|
||||||
MAN= mdmfs.8
|
MAN= mdmfs.8
|
||||||
MLINKS+= mdmfs.8 mount_mfs.8
|
MLINKS+= mdmfs.8 mount_mfs.8
|
||||||
|
WARNS?= 6
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -101,6 +101,7 @@ main(int argc, char **argv)
|
|||||||
softdep = true;
|
softdep = true;
|
||||||
autounit = false;
|
autounit = false;
|
||||||
have_mdtype = false;
|
have_mdtype = false;
|
||||||
|
mdtype = MD_SWAP;
|
||||||
mdname = MD_NAME;
|
mdname = MD_NAME;
|
||||||
mdnamelen = strlen(mdname);
|
mdnamelen = strlen(mdname);
|
||||||
/*
|
/*
|
||||||
@ -251,7 +252,7 @@ main(int argc, char **argv)
|
|||||||
unit = -1;
|
unit = -1;
|
||||||
} else {
|
} else {
|
||||||
unit = strtoul(unitstr, &p, 10);
|
unit = strtoul(unitstr, &p, 10);
|
||||||
if (unit == (unsigned)ULONG_MAX || *p != '\0')
|
if ((unsigned)unit == (unsigned)ULONG_MAX || *p != '\0')
|
||||||
errx(1, "bad device unit: %s", unitstr);
|
errx(1, "bad device unit: %s", unitstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -399,7 +400,7 @@ do_mdconfig_attach_au(const char *args, const enum md_types mdtype)
|
|||||||
strncpy(linebuf, linep + mdnamelen, linelen);
|
strncpy(linebuf, linep + mdnamelen, linelen);
|
||||||
linebuf[linelen] = '\0';
|
linebuf[linelen] = '\0';
|
||||||
unit = strtoul(linebuf, &p, 10);
|
unit = strtoul(linebuf, &p, 10);
|
||||||
if (unit == (unsigned)ULONG_MAX || *p != '\n')
|
if ((unsigned)unit == (unsigned)ULONG_MAX || *p != '\n')
|
||||||
errx(1, "unexpected output from mdconfig (attach)");
|
errx(1, "unexpected output from mdconfig (attach)");
|
||||||
|
|
||||||
fclose(sfd);
|
fclose(sfd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user