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): improve name of local variable in SrcL...



details:   https://anonhg.NetBSD.org/src/rev/6fe4495ba230
branches:  trunk
changeset: 957207:6fe4495ba230
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 21 18:28:34 2020 +0000

description:
make(1): improve name of local variable in SrcList_Add

Now that nothing in suff.c is named 's' anymore, there is no need for
's2' either.

diffstat:

 usr.bin/make/suff.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r da4d814f18b9 -r 6fe4495ba230 usr.bin/make/suff.c
--- a/usr.bin/make/suff.c       Sat Nov 21 18:23:36 2020 +0000
+++ b/usr.bin/make/suff.c       Sat Nov 21 18:28:34 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: suff.c,v 1.265 2020/11/21 18:12:55 rillig Exp $        */
+/*     $NetBSD: suff.c,v 1.266 2020/11/21 18:28:34 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -114,7 +114,7 @@
 #include "dir.h"
 
 /*     "@(#)suff.c     8.4 (Berkeley) 3/21/94" */
-MAKE_RCSID("$NetBSD: suff.c,v 1.265 2020/11/21 18:12:55 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.266 2020/11/21 18:28:34 rillig Exp $");
 
 #define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
 #define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -884,13 +884,13 @@
 SrcList_Add(SrcList *srcList, char *srcName, Src *targ, Suff *suff,
            const char *debug_tag)
 {
-    Src *s2 = SrcNew(srcName, targ->pref, suff, targ, NULL);
+    Src *src = SrcNew(srcName, targ->pref, suff, targ, NULL);
     targ->numChildren++;
-    Lst_Append(srcList, s2);
+    Lst_Append(srcList, src);
 #ifdef DEBUG_SRC
-    Lst_Append(targ->childrenList, s2);
+    Lst_Append(targ->childrenList, src);
     debug_printf("%s add suff %p src %p to list %p:",
-                debug_tag, targ, s2, srcList);
+                debug_tag, targ, src, srcList);
     SrcList_PrintAddrs(srcList);
 #endif
 }



Home | Main Index | Thread Index | Old Index