From 5ef5088ac4e038d0a147a08377ef087fd6edf527 Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 2 Feb 2002 06:50:57 +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. o Change int foo() { ... to int foo(void) { ... --- bin/sync/sync.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin/sync') diff --git a/bin/sync/sync.c b/bin/sync/sync.c index 019b8fd..54ea61e 100644 --- a/bin/sync/sync.c +++ b/bin/sync/sync.c @@ -48,10 +48,8 @@ static const char rcsid[] = #include #include -int main __P((void)); - int -main() +main(int argc __unused, char *argv[] __unused) { sync(); exit(0); -- cgit v1.1