summaryrefslogtreecommitdiff
path: root/usr.bin/make/dir.c
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2020-11-28 22:59:53 +0000
committerrillig <rillig@NetBSD.org>2020-11-28 22:59:53 +0000
commitc2af6473f97d21eb09ddff789bf0e2e764eee1da (patch)
tree720ccd110b6fc61f78f3070f5381e981b8cd3b1d /usr.bin/make/dir.c
parent5f3a3f7944c47c8672f2ac01c9da84601610df4c (diff)
make(1): replace void pointer in Dir_Destroy with proper pointer
Diffstat (limited to 'usr.bin/make/dir.c')
-rw-r--r--usr.bin/make/dir.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/make/dir.c b/usr.bin/make/dir.c
index 6e5ad7c96a1..5e206e4b3e2 100644
--- a/usr.bin/make/dir.c
+++ b/usr.bin/make/dir.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dir.c,v 1.225 2020/11/28 22:56:01 rillig Exp $ */
+/* $NetBSD: dir.c,v 1.226 2020/11/28 22:59:53 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -136,7 +136,7 @@
#include "job.h"
/* "@(#)dir.c 8.2 (Berkeley) 1/2/94" */
-MAKE_RCSID("$NetBSD: dir.c,v 1.225 2020/11/28 22:56:01 rillig Exp $");
+MAKE_RCSID("$NetBSD: dir.c,v 1.226 2020/11/28 22:59:53 rillig Exp $");
#define DIR_DEBUG0(text) DEBUG0(DIR, text)
#define DIR_DEBUG1(fmt, arg1) DEBUG1(DIR, fmt, arg1)
@@ -229,7 +229,7 @@ OpenDirs_Init(OpenDirs *odirs)
HashTable_Init(&odirs->table);
}
-static void Dir_Destroy(void *);
+static void Dir_Destroy(CachedDir *);
#ifdef CLEANUP
static void
@@ -1537,9 +1537,8 @@ SearchPath_ToFlags(const char *flag, SearchPath *path)
* dirp The directory descriptor to nuke
*/
static void
-Dir_Destroy(void *dirp)
+Dir_Destroy(CachedDir *dir)
{
- CachedDir *dir = dirp;
dir->refCount--;
if (dir->refCount == 0) {