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): migrate printCMD in meta mode to Lst_F...



details:   https://anonhg.NetBSD.org/src/rev/936fba8b52ee
branches:  trunk
changeset: 939061:936fba8b52ee
user:      rillig <rillig%NetBSD.org@localhost>
date:      Thu Sep 24 07:53:32 2020 +0000

description:
make(1): migrate printCMD in meta mode to Lst_ForEach

diffstat:

 usr.bin/make/meta.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r d69c73004fba -r 936fba8b52ee usr.bin/make/meta.c
--- a/usr.bin/make/meta.c       Thu Sep 24 07:49:58 2020 +0000
+++ b/usr.bin/make/meta.c       Thu Sep 24 07:53:32 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: meta.c,v 1.118 2020/09/24 07:11:29 rillig Exp $ */
+/*      $NetBSD: meta.c,v 1.119 2020/09/24 07:53:32 rillig Exp $ */
 
 /*
  * Implement 'meta' mode.
@@ -365,7 +365,7 @@
     GNode *gn;
 } meta_file_t;
 
-static int
+static void
 printCMD(void *cmdp, void *mfpp)
 {
     meta_file_t *mfp = mfpp;
@@ -379,7 +379,6 @@
     }
     fprintf(mfp->fp, "CMD %s\n", cmd);
     free(cmd_freeIt);
-    return 0;
 }
 
 /*
@@ -522,7 +521,7 @@
 
     mf.gn = gn;
 
-    Lst_ForEachUntil(gn->commands, printCMD, &mf);
+    Lst_ForEach(gn->commands, printCMD, &mf);
 
     fprintf(mf.fp, "CWD %s\n", getcwd(buf, sizeof(buf)));
     fprintf(mf.fp, "TARGET %s\n", tname);



Home | Main Index | Thread Index | Old Index