diff options
Diffstat (limited to 'lst.lib/lstIsAtEnd.c')
-rw-r--r-- | lst.lib/lstIsAtEnd.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lst.lib/lstIsAtEnd.c b/lst.lib/lstIsAtEnd.c index 70270d2956c1..c5add4d9867f 100644 --- a/lst.lib/lstIsAtEnd.c +++ b/lst.lib/lstIsAtEnd.c @@ -1,4 +1,4 @@ -/* $NetBSD: lstIsAtEnd.c,v 1.13 2008/02/15 21:29:50 christos Exp $ */ +/* $NetBSD: lstIsAtEnd.c,v 1.14 2020/07/03 08:37:57 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -33,14 +33,14 @@ */ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: lstIsAtEnd.c,v 1.13 2008/02/15 21:29:50 christos Exp $"; +static char rcsid[] = "$NetBSD: lstIsAtEnd.c,v 1.14 2020/07/03 08:37:57 rillig Exp $"; #else #include <sys/cdefs.h> #ifndef lint #if 0 static char sccsid[] = "@(#)lstIsAtEnd.c 8.1 (Berkeley) 6/6/93"; #else -__RCSID("$NetBSD: lstIsAtEnd.c,v 1.13 2008/02/15 21:29:50 christos Exp $"); +__RCSID("$NetBSD: lstIsAtEnd.c,v 1.14 2020/07/03 08:37:57 rillig Exp $"); #endif #endif /* not lint */ #endif @@ -81,7 +81,6 @@ Lst_IsAtEnd(Lst l) { List list = l; - return (!LstValid (l) || !list->isOpen || - (list->atEnd == Head) || (list->atEnd == Tail)); + return !LstValid (l) || !list->isOpen || + list->atEnd == Head || list->atEnd == Tail; } - |