Make this pass WARNS=2 and BDECFLAGS

This commit is contained in:
Kris Kennaway 2001-05-20 04:37:28 +00:00
parent a95a13bb8f
commit 0c37bb2120
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76874
4 changed files with 10 additions and 3 deletions

View File

@ -2,4 +2,6 @@
PROG= domainname
WARNS= 2
.include <bsd.prog.mk>

View File

@ -53,6 +53,7 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
int main __P((int, char *[]));
void usage __P((void));
int
@ -75,10 +76,10 @@ main(argc,argv)
usage();
if (*argv) {
if (setdomainname(*argv, strlen(*argv)))
if (setdomainname(*argv, (int)strlen(*argv)))
err(1, "setdomainname");
} else {
if (getdomainname(domainname, sizeof(domainname)))
if (getdomainname(domainname, (int)sizeof(domainname)))
err(1, "getdomainname");
(void)printf("%s\n", domainname);
}

View File

@ -3,4 +3,6 @@
PROG= echo
WARNS= 2
.include <bsd.prog.mk>

View File

@ -49,9 +49,11 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
int main __P((int, char *[]));
int
main(argc, argv)
int argc;
int argc __unused;
char *argv[];
{
int nflag;