diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-09-14 13:32:11 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-09-14 13:32:11 +0000 |
commit | 28df6ffac43fe362569ebdb390fe1e7dd994c877 (patch) | |
tree | 306f06672ccb6c8ba9c67d1b19544e6b70551f16 /usr.bin/make/main.c | |
parent | 912ebd4a27f63943fb63420edfac122743be32ca (diff) |
Some systematic clean-up.
- UNUSED macro that expands to __attribute__((unused)) for gcc
- move rcsid around so that they can be tagged UNUSED.
- activate -Wunused.
- use UNUSED instead of kludgy junk for function arguments.
- add extern to all extern prototypes.
- update comments in lst.h.
- clean up var.c a little bit, constifying arguments, updating comments...
Diffstat (limited to 'usr.bin/make/main.c')
-rw-r--r-- | usr.bin/make/main.c | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 4f196c87764..109108093d1 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.40 2000/07/31 21:01:40 espie Exp $ */ +/* $OpenBSD: main.c,v 1.41 2000/09/14 13:32:07 espie Exp $ */ /* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */ /* @@ -39,20 +39,6 @@ * SUCH DAMAGE. */ -#ifndef lint -static char copyright[] = -"@(#) Copyright (c) 1988, 1989, 1990, 1993\n\ - The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ - -#ifndef lint -#if 0 -static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94"; -#else -static char rcsid[] = "$OpenBSD: main.c,v 1.40 2000/07/31 21:01:40 espie Exp $"; -#endif -#endif /* not lint */ - /*- * main.c -- * The main file for this entire program. Exit routines etc @@ -106,6 +92,23 @@ static char rcsid[] = "$OpenBSD: main.c,v 1.40 2000/07/31 21:01:40 espie Exp $"; #include "job.h" #include "pathnames.h" +#ifndef lint +UNUSED +static char copyright[] = +"@(#) Copyright (c) 1988, 1989, 1990, 1993\n\ + The Regents of the University of California. All rights reserved.\n"; +#endif /* not lint */ + +#ifndef lint +#if 0 +static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94"; +#else +UNUSED +static char rcsid[] = "$OpenBSD: main.c,v 1.41 2000/09/14 13:32:07 espie Exp $"; +#endif +#endif /* not lint */ + + #ifndef DEFMAXLOCAL #define DEFMAXLOCAL DEFMAXJOBS #endif /* DEFMAXLOCAL */ |