summaryrefslogtreecommitdiffstats
path: root/bin/pwd/pwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pwd/pwd.c')
-rw-r--r--bin/pwd/pwd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c
index b839617..886bbb9 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);
OpenPOWER on IntegriCloud