diff options
Diffstat (limited to 'bin/pwd')
-rw-r--r-- | bin/pwd/Makefile | 2 | ||||
-rw-r--r-- | bin/pwd/pwd.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/bin/pwd/Makefile b/bin/pwd/Makefile index 129ed63..4d07098 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 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); |