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/arch.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/arch.c')
-rw-r--r-- | usr.bin/make/arch.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/make/arch.c b/usr.bin/make/arch.c index ab5eb6971ce..939473d4ec5 100644 --- a/usr.bin/make/arch.c +++ b/usr.bin/make/arch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arch.c,v 1.31 2000/06/23 16:20:01 espie Exp $ */ +/* $OpenBSD: arch.c,v 1.32 2000/09/14 13:32:05 espie Exp $ */ /* $NetBSD: arch.c,v 1.17 1996/11/06 17:58:59 christos Exp $ */ /* @@ -39,14 +39,6 @@ * SUCH DAMAGE. */ -#ifndef lint -#if 0 -static char sccsid[] = "@(#)arch.c 8.2 (Berkeley) 1/2/94"; -#else -static char rcsid[] = "$OpenBSD: arch.c,v 1.31 2000/06/23 16:20:01 espie Exp $"; -#endif -#endif /* not lint */ - /*- * arch.c -- * Functions to manipulate libraries, archives and their members. @@ -110,6 +102,15 @@ static char rcsid[] = "$OpenBSD: arch.c,v 1.31 2000/06/23 16:20:01 espie Exp $"; #include "dir.h" #include "config.h" +#ifndef lint +#if 0 +static char sccsid[] = "@(#)arch.c 8.2 (Berkeley) 1/2/94"; +#else +UNUSED +static char rcsid[] = "$OpenBSD: arch.c,v 1.32 2000/09/14 13:32:05 espie Exp $"; +#endif +#endif /* not lint */ + #ifdef TARGET_MACHINE #undef MACHINE #define MACHINE TARGET_MACHINE @@ -1008,9 +1009,8 @@ Arch_MTime (gn) GNode *gn; /* Node describing archive member */ { struct ar_hdr *arhPtr; /* Header of desired member */ - time_t modTime; /* Modification time as an integer */ - arhPtr = ArchStatMember (Varq_Value(ARCHIVE_INDEX, gn), + arhPtr = ArchStatMember(Varq_Value(ARCHIVE_INDEX, gn), Varq_Value(MEMBER_INDEX, gn), TRUE); if (arhPtr != NULL) { |