diff options
| author | rillig <rillig@NetBSD.org> | 2022-01-07 20:50:35 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2022-01-07 20:50:35 +0000 |
| commit | e99ba61be2cec879bfb5d470311f2822c5df408c (patch) | |
| tree | 688213d325741b66756472ada4d1a9c8c553f0c0 /usr.bin/make/suff.c | |
| parent | 80f691b2636cc3ea00ecf392290eebac3510bd2b (diff) | |
make: merge duplicate variables for the main target
No functional change.
Diffstat (limited to 'usr.bin/make/suff.c')
| -rw-r--r-- | usr.bin/make/suff.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/make/suff.c b/usr.bin/make/suff.c index 80f927ace3a..6834efd2f78 100644 --- a/usr.bin/make/suff.c +++ b/usr.bin/make/suff.c @@ -1,4 +1,4 @@ -/* $NetBSD: suff.c,v 1.362 2022/01/01 19:44:05 rillig Exp $ */ +/* $NetBSD: suff.c,v 1.363 2022/01/07 20:50:35 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -115,7 +115,7 @@ #include "dir.h" /* "@(#)suff.c 8.4 (Berkeley) 3/21/94" */ -MAKE_RCSID("$NetBSD: suff.c,v 1.362 2022/01/01 19:44:05 rillig Exp $"); +MAKE_RCSID("$NetBSD: suff.c,v 1.363 2022/01/07 20:50:35 rillig Exp $"); typedef List SuffixList; typedef ListNode SuffixListNode; @@ -744,7 +744,6 @@ UpdateTarget(GNode *target, GNode **inout_main, Suffix *suff, GNode_IsMainCandidate(target)) { DEBUG1(MAKE, "Setting main node to \"%s\"\n", target->name); *inout_main = target; - Targ_SetMain(target); /* * XXX: Why could it be a good idea to return true here? * The main task of this function is to turn ordinary nodes @@ -788,7 +787,6 @@ UpdateTarget(GNode *target, GNode **inout_main, Suffix *suff, target->name); *inout_removedMain = true; *inout_main = NULL; - Targ_SetMain(NULL); } Lst_Done(&target->children); Lst_Init(&target->children); |
