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:
parent
29e13abe4c
commit
52a2fc64fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76879
@ -5,4 +5,6 @@ PROG= pwd
|
||||
LINKS= ${BINDIR}/pwd ${BINDIR}/realpath
|
||||
MAN= pwd.1 realpath.1
|
||||
|
||||
WARNS= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user