1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00

Silence WARNS=2 and BDECFLAGS on i386 and alpha.

MFC After:	1 week
This commit is contained in:
Kris Kennaway 2001-05-20 05:01:48 +00:00
parent 29e13abe4c
commit 52a2fc64fe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76879
2 changed files with 4 additions and 1 deletions

View File

@ -5,4 +5,6 @@ PROG= pwd
LINKS= ${BINDIR}/pwd ${BINDIR}/realpath
MAN= pwd.1 realpath.1
WARNS= 2
.include <bsd.prog.mk>

View File

@ -51,6 +51,7 @@ static const char rcsid[] =
#include <unistd.h>
#include <sys/param.h>
int main __P((int, char *[]));
void usage __P((void));
int
@ -85,7 +86,7 @@ main(argc, argv)
err(1, "%s", argv[0]);
(void)printf("%s\n", p);
} else if (argc == 0) {
p = getcwd(NULL, 0);
p = getcwd(NULL, (size_t)0);
if (p == NULL)
err(1, ".");
(void)printf("%s\n", p);