Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Nuke redundant test (though, gcc optimizer was ...



details:   https://anonhg.NetBSD.org/src/rev/2ec1e96e19ae
branches:  trunk
changeset: 495823:2ec1e96e19ae
user:      enami <enami%NetBSD.org@localhost>
date:      Mon Aug 07 06:00:59 2000 +0000

description:
Nuke redundant test (though, gcc optimizer was clever enough not to emit
redundant code).

diffstat:

 lib/libc/gen/__fts13.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 073a919aec1e -r 2ec1e96e19ae lib/libc/gen/__fts13.c
--- a/lib/libc/gen/__fts13.c    Mon Aug 07 05:56:11 2000 +0000
+++ b/lib/libc/gen/__fts13.c    Mon Aug 07 06:00:59 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __fts13.c,v 1.29 2000/08/07 05:56:11 enami Exp $       */
+/*     $NetBSD: __fts13.c,v 1.30 2000/08/07 06:00:59 enami Exp $       */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)fts.c      8.6 (Berkeley) 8/14/94";
 #else
-__RCSID("$NetBSD: __fts13.c,v 1.29 2000/08/07 05:56:11 enami Exp $");
+__RCSID("$NetBSD: __fts13.c,v 1.30 2000/08/07 06:00:59 enami Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -423,7 +423,7 @@
                 * load the paths for the next root.
                 */
                if (p->fts_level == FTS_ROOTLEVEL) {
-                       if (!ISSET(FTS_NOCHDIR) && FCHDIR(sp, sp->fts_rfd)) {
+                       if (FCHDIR(sp, sp->fts_rfd)) {
                                SET(FTS_STOP);
                                return (NULL);
                        }
@@ -480,7 +480,7 @@
         * one directory.
         */
        if (p->fts_level == FTS_ROOTLEVEL) {
-               if (!ISSET(FTS_NOCHDIR) && FCHDIR(sp, sp->fts_rfd)) {
+               if (FCHDIR(sp, sp->fts_rfd)) {
                        SET(FTS_STOP);
                        return (NULL);
                }



Home | Main Index | Thread Index | Old Index