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/440ebe5854fd
branches:  trunk
changeset: 946477:440ebe5854fd
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 1ba06b093811 -r 440ebe5854fd 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