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/lst.lib/lstMember.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/lst.lib/lstMember.c')
-rw-r--r-- | usr.bin/make/lst.lib/lstMember.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/usr.bin/make/lst.lib/lstMember.c b/usr.bin/make/lst.lib/lstMember.c index b799ea7287c..b78ce79f10d 100644 --- a/usr.bin/make/lst.lib/lstMember.c +++ b/usr.bin/make/lst.lib/lstMember.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstMember.c,v 1.7 2000/06/17 14:34:09 espie Exp $ */ +/* $OpenBSD: lstMember.c,v 1.8 2000/09/14 13:32:09 espie Exp $ */ /* $NetBSD: lstMember.c,v 1.5 1996/11/06 17:59:48 christos Exp $ */ /* @@ -37,20 +37,21 @@ * SUCH DAMAGE. */ +/*- + * lstMember.c -- + * See if a given datum is on a given list. + */ + +#include "lstInt.h" #ifndef lint #if 0 static char sccsid[] = "@(#)lstMember.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstMember.c,v 1.7 2000/06/17 14:34:09 espie Exp $"; +UNUSED +static char rcsid[] = "$OpenBSD: lstMember.c,v 1.8 2000/09/14 13:32:09 espie Exp $"; #endif #endif /* not lint */ -/*- - * lstMember.c -- - * See if a given datum is on a given list. - */ - -#include "lstInt.h" LstNode Lst_Member(l, d) |