summaryrefslogtreecommitdiff
path: root/usr.bin/make/dir.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-09-14 13:32:11 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-09-14 13:32:11 +0000
commit28df6ffac43fe362569ebdb390fe1e7dd994c877 (patch)
tree306f06672ccb6c8ba9c67d1b19544e6b70551f16 /usr.bin/make/dir.c
parent912ebd4a27f63943fb63420edfac122743be32ca (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/dir.c')
-rw-r--r--usr.bin/make/dir.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/usr.bin/make/dir.c b/usr.bin/make/dir.c
index 0d48b31f5f4..b19c5578a34 100644
--- a/usr.bin/make/dir.c
+++ b/usr.bin/make/dir.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dir.c,v 1.23 2000/06/23 16:41:52 espie Exp $ */
+/* $OpenBSD: dir.c,v 1.24 2000/09/14 13:32:06 espie Exp $ */
/* $NetBSD: dir.c,v 1.14 1997/03/29 16:51:26 christos Exp $ */
/*
@@ -39,14 +39,6 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)dir.c 8.2 (Berkeley) 1/2/94";
-#else
-static char rcsid[] = "$OpenBSD: dir.c,v 1.23 2000/06/23 16:41:52 espie Exp $";
-#endif
-#endif /* not lint */
-
/*-
* dir.c --
* Directory searching using wildcards and/or normal names...
@@ -98,6 +90,15 @@ static char rcsid[] = "$OpenBSD: dir.c,v 1.23 2000/06/23 16:41:52 espie Exp $";
#include "hash.h"
#include "dir.h"
+#ifndef lint
+#if 0
+static char sccsid[] = "@(#)dir.c 8.2 (Berkeley) 1/2/94";
+#else
+UNUSED
+static char rcsid[] = "$OpenBSD: dir.c,v 1.24 2000/09/14 13:32:06 espie Exp $";
+#endif
+#endif /* not lint */
+
/*
* A search path consists of a Lst of Path structures. A Path structure
* has in it the name of the directory and a hash table of all the files