summaryrefslogtreecommitdiff
path: root/usr.bin/make/arch.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-09-16 11:29:35 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-09-16 11:29:35 +0000
commitd991181f2ad7072b3671e0b0ca9de2a579097b85 (patch)
treef6628850612c1f818f45b9346d0f0f160c7d5900 /usr.bin/make/arch.c
parentc6d1a4fe475ca6f4f21e36633267ebad79b8bf77 (diff)
reuse free_hash
Diffstat (limited to 'usr.bin/make/arch.c')
-rw-r--r--usr.bin/make/arch.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/usr.bin/make/arch.c b/usr.bin/make/arch.c
index 6d29d6341a5..8000dece5be 100644
--- a/usr.bin/make/arch.c
+++ b/usr.bin/make/arch.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: arch.c,v 1.64 2007/09/16 11:27:05 espie Exp $ */
+/* $OpenBSD: arch.c,v 1.65 2007/09/16 11:29:34 espie Exp $ */
/* $NetBSD: arch.c,v 1.17 1996/11/06 17:58:59 christos Exp $ */
/*
@@ -198,24 +198,11 @@ mtime_of_member(struct arch_member *m)
}
#ifdef CLEANUP
-/*-
- *-----------------------------------------------------------------------
- * ArchFree --
- * Free memory used by an archive
- *-----------------------------------------------------------------------
- */
static void
ArchFree(Arch *a)
{
- struct arch_member *mem;
- unsigned int i;
-
/* Free memory from hash entries */
- for (mem = ohash_first(&a->members, &i); mem != NULL;
- mem = ohash_next(&a->members, &i))
- free(mem);
-
- ohash_delete(&a->members);
+ free_hash(&a->members);
free(a);
}
#endif