Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): replace void pointer in Dir_Destroy wi...
details: https://anonhg.NetBSD.org/src/rev/48f2ea041eb9
branches: trunk
changeset: 1016706:48f2ea041eb9
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Nov 28 22:59:53 2020 +0000
description:
make(1): replace void pointer in Dir_Destroy with proper pointer
diffstat:
usr.bin/make/dir.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 999d0f0080e6 -r 48f2ea041eb9 usr.bin/make/dir.c
--- a/usr.bin/make/dir.c Sat Nov 28 22:56:01 2020 +0000
+++ b/usr.bin/make/dir.c Sat Nov 28 22:59:53 2020 +0000
@@ -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 @@
HashTable_Init(&odirs->table);
}
-static void Dir_Destroy(void *);
+static void Dir_Destroy(CachedDir *);
#ifdef CLEANUP
static void
@@ -1537,9 +1537,8 @@
* 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) {
Home |
Main Index |
Thread Index |
Old Index