Make this pass WARNS=2 and BDECFLAGS

This commit is contained in:
kris 2001-05-20 04:37:28 +00:00
parent 209cea8236
commit ef3012c214
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;