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): fix prototype of Compat_Make
details: https://anonhg.NetBSD.org/src/rev/fadb8d27b869
branches: trunk
changeset: 976076:fadb8d27b869
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Sep 12 15:10:55 2020 +0000
description:
make(1): fix prototype of Compat_Make
diffstat:
usr.bin/make/compat.c | 21 ++++++++++++---------
usr.bin/make/nonints.h | 4 ++--
2 files changed, 14 insertions(+), 11 deletions(-)
diffs (88 lines):
diff -r 441ae85bfbd9 -r fadb8d27b869 usr.bin/make/compat.c
--- a/usr.bin/make/compat.c Sat Sep 12 15:03:39 2020 +0000
+++ b/usr.bin/make/compat.c Sat Sep 12 15:10:55 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat.c,v 1.142 2020/09/12 15:03:39 rillig Exp $ */
+/* $NetBSD: compat.c,v 1.143 2020/09/12 15:10:55 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: compat.c,v 1.142 2020/09/12 15:03:39 rillig Exp $";
+static char rcsid[] = "$NetBSD: compat.c,v 1.143 2020/09/12 15:10:55 rillig Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: compat.c,v 1.142 2020/09/12 15:03:39 rillig Exp $");
+__RCSID("$NetBSD: compat.c,v 1.143 2020/09/12 15:10:55 rillig Exp $");
#endif
#endif /* not lint */
#endif
@@ -485,6 +485,12 @@
return Compat_RunCommand(cmd, gn);
}
+static int
+CompatMake(void *gn, void *pgn)
+{
+ return Compat_Make(gn, pgn);
+}
+
/*-
*-----------------------------------------------------------------------
* Compat_Make --
@@ -503,11 +509,8 @@
*-----------------------------------------------------------------------
*/
int
-Compat_Make(void *gnp, void *pgnp)
+Compat_Make(GNode *gn, GNode *pgn)
{
- GNode *gn = (GNode *)gnp;
- GNode *pgn = (GNode *)pgnp;
-
if (!shellName) /* we came here from jobs */
Shell_Init();
if (gn->made == UNMADE && (gn == pgn || (pgn->type & OP_MADE) == 0)) {
@@ -523,7 +526,7 @@
gn->made = BEINGMADE;
if ((gn->type & OP_MADE) == 0)
Suff_FindDeps(gn);
- Lst_ForEach(gn->children, Compat_Make, gn);
+ Lst_ForEach(gn->children, CompatMake, gn);
if ((gn->flags & REMAKE) == 0) {
gn->made = ABORTED;
pgn->flags &= ~(unsigned)REMAKE;
@@ -663,7 +666,7 @@
}
cohorts:
- Lst_ForEach(gn->cohorts, Compat_Make, pgnp);
+ Lst_ForEach(gn->cohorts, CompatMake, pgn);
return 0;
}
diff -r 441ae85bfbd9 -r fadb8d27b869 usr.bin/make/nonints.h
--- a/usr.bin/make/nonints.h Sat Sep 12 15:03:39 2020 +0000
+++ b/usr.bin/make/nonints.h Sat Sep 12 15:10:55 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nonints.h,v 1.108 2020/09/12 15:03:40 rillig Exp $ */
+/* $NetBSD: nonints.h,v 1.109 2020/09/12 15:10:55 rillig Exp $ */
/*-
* Copyright (c) 1988, 1989, 1990, 1993
@@ -87,7 +87,7 @@
/* compat.c */
int Compat_RunCommand(char *, GNode *);
void Compat_Run(Lst);
-int Compat_Make(void *, void *);
+int Compat_Make(GNode *, GNode *);
/* cond.c */
struct If;
Home |
Main Index |
Thread Index |
Old Index