diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2001-05-20 05:01:48 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2001-05-20 05:01:48 +0000 |
| commit | 52a2fc64fe0fa4e9772e9c3ea186d16a843ef400 (patch) | |
| tree | 234d3a604aaf4bb9b42746164eb39c852fe0dee0 /bin | |
| parent | 29e13abe4c8d4d52b2bfc2eb7cef0442a6fc7b10 (diff) | |
Notes
Diffstat (limited to 'bin')
| -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 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); |
