aboutsummaryrefslogtreecommitdiff
path: root/bin/pwd
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2002-02-02 06:48:10 +0000
committerWarner Losh <imp@FreeBSD.org>2002-02-02 06:48:10 +0000
commit46251dde8f47db03ad83997efd5e8f8bd8938855 (patch)
treef26db6e85c29b2244f601bdb366caa7f26a96c24 /bin/pwd
parent7669d0fc4f7d3869e27f94843ca120399a4825e9 (diff)
downloadsrc-46251dde8f47db03ad83997efd5e8f8bd8938855.tar.gz
src-46251dde8f47db03ad83997efd5e8f8bd8938855.zip
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
Notes
Notes: svn path=/head/; revision=90110
Diffstat (limited to 'bin/pwd')
-rw-r--r--bin/pwd/pwd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c
index befb340c0812..23df46248378 100644
--- a/bin/pwd/pwd.c
+++ b/bin/pwd/pwd.c
@@ -52,13 +52,10 @@ static const char rcsid[] =
#include <unistd.h>
#include <sys/param.h>
-int main __P((int, char *[]));
-void usage __P((void));
+void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int ch;
char *p;
@@ -99,7 +96,7 @@ main(argc, argv)
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: pwd\n");