- Make WARNS?= 6 clean - Add WARNS?= 6 Index: src/sbin/mdmfs/mdmfs.c =================================================================== --- src/sbin/mdmfs/mdmfs.c (revision 105) +++ src/sbin/mdmfs/mdmfs.c (working copy) @@ -101,6 +101,7 @@ softdep = true; autounit = false; have_mdtype = false; + mdtype = MD_SWAP; mdname = MD_NAME; mdnamelen = strlen(mdname); /* @@ -251,7 +252,7 @@ unit = -1; } else { 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); } @@ -399,7 +400,7 @@ strncpy(linebuf, linep + mdnamelen, linelen); linebuf[linelen] = '\0'; 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)"); fclose(sfd); Index: src/sbin/mdmfs/Makefile =================================================================== --- src/sbin/mdmfs/Makefile (revision 105) +++ src/sbin/mdmfs/Makefile (working copy) @@ -4,5 +4,6 @@ LINKS= ${BINDIR}/${PROG} ${BINDIR}/mount_mfs MAN= mdmfs.8 MLINKS+= mdmfs.8 mount_mfs.8 +WARNS?= 6 .include