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 unused reference to Lst_Last



details:   https://anonhg.NetBSD.org/src/rev/9f5eb83714fb
branches:  trunk
changeset: 943155:9f5eb83714fb
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Aug 28 04:16:57 2020 +0000

description:
make(1): remove unused reference to Lst_Last

diffstat:

 usr.bin/make/dir.c |  8 ++++----
 usr.bin/make/lst.h |  3 +--
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 1e7c22890e45 -r 9f5eb83714fb usr.bin/make/dir.c
--- a/usr.bin/make/dir.c        Fri Aug 28 04:14:31 2020 +0000
+++ b/usr.bin/make/dir.c        Fri Aug 28 04:16:57 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dir.c,v 1.116 2020/08/28 04:14:31 rillig Exp $ */
+/*     $NetBSD: dir.c,v 1.117 2020/08/28 04:16:57 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: dir.c,v 1.116 2020/08/28 04:14:31 rillig Exp $";
+static char rcsid[] = "$NetBSD: dir.c,v 1.117 2020/08/28 04:16:57 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)dir.c      8.2 (Berkeley) 1/2/94";
 #else
-__RCSID("$NetBSD: dir.c,v 1.116 2020/08/28 04:14:31 rillig Exp $");
+__RCSID("$NetBSD: dir.c,v 1.117 2020/08/28 04:16:57 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1339,7 +1339,7 @@
     cp[-1] = '/';
 
     bigmisses += 1;
-    ln = Lst_Last(path);
+    ln = Lst_LastS(path);
     if (ln == NULL) {
        return NULL;
     } else {
diff -r 1e7c22890e45 -r 9f5eb83714fb usr.bin/make/lst.h
--- a/usr.bin/make/lst.h        Fri Aug 28 04:14:31 2020 +0000
+++ b/usr.bin/make/lst.h        Fri Aug 28 04:16:57 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lst.h,v 1.50 2020/08/28 04:14:31 rillig Exp $  */
+/*     $NetBSD: lst.h,v 1.51 2020/08/28 04:16:57 rillig Exp $  */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -133,7 +133,6 @@
 /* Return first element in list */
 LstNode                Lst_FirstS(Lst);
 /* Return last element in list */
-LstNode                Lst_Last(Lst);
 LstNode                Lst_LastS(Lst);
 /* Return successor to given element */
 LstNode                Lst_SuccS(LstNode);



Home | Main Index | Thread Index | Old Index