summaryrefslogtreecommitdiff
path: root/usr.bin/make/dir.c
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1999-09-15 08:43:21 +0000
committermycroft <mycroft@NetBSD.org>1999-09-15 08:43:21 +0000
commitdd291116bc06e2dc513da8bd7bf3ec31d3f875f7 (patch)
tree2a354915f78d47cb298fe594acbb006fc89085c7 /usr.bin/make/dir.c
parent441a442e4629dbb5ff4935ea50cca72f0ca864bf (diff)
Don't bother iterating through all the data structures to free(3) everything
right before exiting. (The code is still present, `#ifdef CLEANUP', in case someone needs it...)
Diffstat (limited to 'usr.bin/make/dir.c')
-rw-r--r--usr.bin/make/dir.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/make/dir.c b/usr.bin/make/dir.c
index 6898bc8f2fd..18a4341b97a 100644
--- a/usr.bin/make/dir.c
+++ b/usr.bin/make/dir.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dir.c,v 1.23 1999/09/15 05:56:33 mycroft Exp $ */
+/* $NetBSD: dir.c,v 1.24 1999/09/15 08:43:22 mycroft Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -39,14 +39,14 @@
*/
#ifdef MAKE_BOOTSTRAP
-static char rcsid[] = "$NetBSD: dir.c,v 1.23 1999/09/15 05:56:33 mycroft Exp $";
+static char rcsid[] = "$NetBSD: dir.c,v 1.24 1999/09/15 08:43:22 mycroft Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)dir.c 8.2 (Berkeley) 1/2/94";
#else
-__RCSID("$NetBSD: dir.c,v 1.23 1999/09/15 05:56:33 mycroft Exp $");
+__RCSID("$NetBSD: dir.c,v 1.24 1999/09/15 08:43:22 mycroft Exp $");
#endif
#endif /* not lint */
#endif
@@ -275,6 +275,7 @@ Dir_Init (cdname)
void
Dir_End()
{
+#ifdef CLEANUP
if (cur) {
cur->refCount -= 1;
Dir_Destroy((ClientData) cur);
@@ -288,6 +289,7 @@ Dir_End()
Dir_ClearPath(openDirectories);
Lst_Destroy(openDirectories, NOFREE);
Hash_DeleteTable(&mtimes);
+#endif
}
/*-