From 50014e35418ca00d25ea852fc4f94acf80be4df3 Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 2 Feb 2002 06:48:10 +0000 Subject: 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. --- bin/pwd/pwd.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'bin/pwd/pwd.c') diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c index befb340..23df462 100644 --- a/bin/pwd/pwd.c +++ b/bin/pwd/pwd.c @@ -52,13 +52,10 @@ static const char rcsid[] = #include #include -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"); -- cgit v1.1