Make this pass WARNS=2 and BDECFLAGS
This commit is contained in:
parent
209cea8236
commit
ef3012c214
@ -2,4 +2,6 @@
|
||||
|
||||
PROG= domainname
|
||||
|
||||
WARNS= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -3,4 +3,6 @@
|
||||
|
||||
PROG= echo
|
||||
|
||||
WARNS= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user