Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Garbage collect a non-useful variable in getcwd_sca...



details:   https://anonhg.NetBSD.org/src/rev/3c7e4f4d9f52
branches:  trunk
changeset: 467457:3c7e4f4d9f52
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Thu Mar 25 02:32:18 1999 +0000

description:
Garbage collect a non-useful variable in getcwd_scandir().

diffstat:

 sys/kern/vfs_getcwd.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 3b8482728409 -r 3c7e4f4d9f52 sys/kern/vfs_getcwd.c
--- a/sys/kern/vfs_getcwd.c     Thu Mar 25 02:22:21 1999 +0000
+++ b/sys/kern/vfs_getcwd.c     Thu Mar 25 02:32:18 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_getcwd.c,v 1.1 1999/03/22 17:01:55 sommerfe Exp $ */
+/* $NetBSD: vfs_getcwd.c,v 1.2 1999/03/25 02:32:18 nathanw Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -88,7 +88,6 @@
        char *bufp;
        struct proc *p;
 {
-       char   *entry;
        int     error = 0;
        int     eofflag;
        off_t   off;
@@ -179,7 +178,7 @@
                        tries++;
                        continue;       /* once more, with feeling */
                }
-               entry = NULL;
+
                if (!error) {
                        char   *cpos;
                        struct dirent *dp;
@@ -220,7 +219,7 @@
                                cpos += reclen;
                        }
                }
-       } while (!eofflag && !entry);
+       } while (!eofflag);
 #if 0
        /*
         * Deal with mount -o union, which unions only the



Home | Main Index | Thread Index | Old Index