mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 18:12:57 +01:00
Make this pass WARNS=2 and BDECFLAGS
This commit is contained in:
parent
a95a13bb8f
commit
0c37bb2120
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76874
@ -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