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): rename local variable in MakeNodes



details:   https://anonhg.NetBSD.org/src/rev/66d39f5cbba0
branches:  trunk
changeset: 955343:66d39f5cbba0
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Sep 27 11:39:02 2020 +0000

description:
make(1): rename local variable in MakeNodes

By convention, list nodes are named ln to distinguish them from GNodes,
which are called gn.

diffstat:

 usr.bin/make/compat.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r f2d1ffb34dd6 -r 66d39f5cbba0 usr.bin/make/compat.c
--- a/usr.bin/make/compat.c     Sun Sep 27 11:37:19 2020 +0000
+++ b/usr.bin/make/compat.c     Sun Sep 27 11:39:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat.c,v 1.153 2020/09/27 11:37:19 rillig Exp $      */
+/*     $NetBSD: compat.c,v 1.154 2020/09/27 11:39:02 rillig Exp $      */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -99,7 +99,7 @@
 #include    "pathnames.h"
 
 /*     "@(#)compat.c   8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: compat.c,v 1.153 2020/09/27 11:37:19 rillig Exp $");
+MAKE_RCSID("$NetBSD: compat.c,v 1.154 2020/09/27 11:39:02 rillig Exp $");
 
 static GNode       *curTarg = NULL;
 static void CompatInterrupt(int);
@@ -475,9 +475,9 @@
 static void
 MakeNodes(GNodeList *gnodes, GNode *pgn)
 {
-    GNodeListNode *node;
-    for (node = gnodes->first; node != NULL; node = node->next) {
-       GNode *cohort = node->datum;
+    GNodeListNode *ln;
+    for (ln = gnodes->first; ln != NULL; ln = ln->next) {
+       GNode *cohort = ln->datum;
        Compat_Make(cohort, pgn);
     }
 }



Home | Main Index | Thread Index | Old Index