make(1): remove unused reference to Lst_Last
This commit is contained in:
parent
4b307a6103
commit
acebd2797e
@ -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 @@ Dir_FindFile(const char *name, Lst path)
|
||||
cp[-1] = '/';
|
||||
|
||||
bigmisses += 1;
|
||||
ln = Lst_Last(path);
|
||||
ln = Lst_LastS(path);
|
||||
if (ln == NULL) {
|
||||
return NULL;
|
||||
} else {
|
||||
|
@ -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 @@ void Lst_MoveAllS(Lst, Lst);
|
||||
/* 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);
|
||||
|
Loading…
Reference in New Issue
Block a user