summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2006-05-06 10:52:35 +0000
committerMarc Espie <espie@cvs.openbsd.org>2006-05-06 10:52:35 +0000
commita558bc47f825a99c1617d0247cde90b47ac28195 (patch)
treeab5bcfdd76f317d70574b7d33c12ca64bba9ebb1
parentdea3f89dc28382e3a9efddbdf9777f1f37867526 (diff)
do not bother defining End if !CLEANUP, reminded by lint.
-rw-r--r--usr.bin/make/init.c4
-rw-r--r--usr.bin/make/main.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/make/init.c b/usr.bin/make/init.c
index 6a69b806c1e..231e3fe968f 100644
--- a/usr.bin/make/init.c
+++ b/usr.bin/make/init.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: init.c,v 1.2 2004/04/07 13:11:36 espie Exp $ */
+/* $OpenBSD: init.c,v 1.3 2006/05/06 10:52:34 espie Exp $ */
/*
* Copyright (c) 2001 Marc Espie.
@@ -55,6 +55,7 @@ Init(void)
Suff_Init();
}
+#ifdef CLEANUP
void
End(void)
{
@@ -66,3 +67,4 @@ End(void)
Dir_End();
Job_End();
}
+#endif
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index 7cfadc06e56..0fd893e2a4a 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: main.c,v 1.67 2006/02/26 18:06:15 jmc Exp $ */
+/* $OpenBSD: main.c,v 1.68 2006/05/06 10:52:34 espie Exp $ */
/* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */
/*
@@ -753,6 +753,7 @@ main(int argc, char **argv)
if (objdir != curdir)
free(objdir);
free(curdir);
+ End();
#endif
if (queryFlag && outOfDate)
return 1;