Silence WARNS=2 and BDECFLAGS on i386 and alpha.
MFC After: 1 week
This commit is contained in:
parent
29e13abe4c
commit
52a2fc64fe
@ -5,4 +5,6 @@ PROG= pwd
|
|||||||
LINKS= ${BINDIR}/pwd ${BINDIR}/realpath
|
LINKS= ${BINDIR}/pwd ${BINDIR}/realpath
|
||||||
MAN= pwd.1 realpath.1
|
MAN= pwd.1 realpath.1
|
||||||
|
|
||||||
|
WARNS= 2
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -51,6 +51,7 @@ static const char rcsid[] =
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
||||||
|
int main __P((int, char *[]));
|
||||||
void usage __P((void));
|
void usage __P((void));
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -85,7 +86,7 @@ main(argc, argv)
|
|||||||
err(1, "%s", argv[0]);
|
err(1, "%s", argv[0]);
|
||||||
(void)printf("%s\n", p);
|
(void)printf("%s\n", p);
|
||||||
} else if (argc == 0) {
|
} else if (argc == 0) {
|
||||||
p = getcwd(NULL, 0);
|
p = getcwd(NULL, (size_t)0);
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
err(1, ".");
|
err(1, ".");
|
||||||
(void)printf("%s\n", p);
|
(void)printf("%s\n", p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user