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): remove redundant parameter from meta_name



details:   https://anonhg.NetBSD.org/src/rev/83a5563d4672
branches:  trunk
changeset: 941551:83a5563d4672
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Oct 24 04:31:53 2020 +0000

description:
make(1): remove redundant parameter from meta_name

diffstat:

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

diffs (36 lines):

diff -r 9d8e4ee49993 -r 83a5563d4672 usr.bin/make/meta.c
--- a/usr.bin/make/meta.c       Sat Oct 24 04:27:24 2020 +0000
+++ b/usr.bin/make/meta.c       Sat Oct 24 04:31:53 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: meta.c,v 1.127 2020/10/19 21:57:37 rillig Exp $ */
+/*      $NetBSD: meta.c,v 1.128 2020/10/24 04:31:53 rillig Exp $ */
 
 /*
  * Implement 'meta' mode.
@@ -236,7 +236,7 @@
 }
 
 static char *
-meta_name(struct GNode *gn, char *mname, size_t mnamelen,
+meta_name(char *mname, size_t mnamelen,
          const char *dname,
          const char *tname,
          const char *cwd)
@@ -510,7 +510,7 @@
        /* Don't create meta data. */
        goto out;
 
-    fname = meta_name(gn, pbm->meta_fname, sizeof(pbm->meta_fname),
+    fname = meta_name(pbm->meta_fname, sizeof(pbm->meta_fname),
                      dname, tname, objdir);
 
 #ifdef DEBUG_META_MODE
@@ -1113,7 +1113,7 @@
      */
     Make_DoAllVar(gn);
 
-    meta_name(gn, fname, sizeof(fname), dname, tname, dname);
+    meta_name(fname, sizeof(fname), dname, tname, dname);
 
 #ifdef DEBUG_META_MODE
     DEBUG1(META, "meta_oodate: %s\n", fname);



Home | Main Index | Thread Index | Old Index