aboutsummaryrefslogtreecommitdiff
path: root/bin/pwd
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-05-20 05:01:48 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-05-20 05:01:48 +0000
commit52a2fc64fe0fa4e9772e9c3ea186d16a843ef400 (patch)
tree234d3a604aaf4bb9b42746164eb39c852fe0dee0 /bin/pwd
parent29e13abe4c8d4d52b2bfc2eb7cef0442a6fc7b10 (diff)
downloadsrc-52a2fc64fe0fa4e9772e9c3ea186d16a843ef400.tar.gz
src-52a2fc64fe0fa4e9772e9c3ea186d16a843ef400.zip
Silence WARNS=2 and BDECFLAGS on i386 and alpha.
MFC After: 1 week
Notes
Notes: svn path=/head/; revision=76879
Diffstat (limited to 'bin/pwd')
-rw-r--r--bin/pwd/Makefile2
-rw-r--r--bin/pwd/pwd.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/bin/pwd/Makefile b/bin/pwd/Makefile
index 129ed63cbdbe..4d070983477d 100644
--- a/bin/pwd/Makefile
+++ b/bin/pwd/Makefile
@@ -5,4 +5,6 @@ PROG= pwd
LINKS= ${BINDIR}/pwd ${BINDIR}/realpath
MAN= pwd.1 realpath.1
+WARNS= 2
+
.include <bsd.prog.mk>
diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c
index b8396176e7ed..886bbb983bd5 100644
--- a/bin/pwd/pwd.c
+++ b/bin/pwd/pwd.c
@@ -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);