Module Name: src Committed By: rillig Date: Sat Nov 28 22:59:53 UTC 2020
Modified Files: src/usr.bin/make: dir.c Log Message: make(1): replace void pointer in Dir_Destroy with proper pointer To generate a diff of this commit: cvs rdiff -u -r1.225 -r1.226 src/usr.bin/make/dir.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/dir.c diff -u src/usr.bin/make/dir.c:1.225 src/usr.bin/make/dir.c:1.226 --- src/usr.bin/make/dir.c:1.225 Sat Nov 28 22:56:01 2020 +++ src/usr.bin/make/dir.c Sat Nov 28 22:59:53 2020 @@ -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, Sea * 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) {