]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove unused vars
authorsin <sin@2f30.org>
Wed, 22 Oct 2014 15:25:59 +0000 (16:25 +0100)
committersin <sin@2f30.org>
Wed, 22 Oct 2014 15:26:14 +0000 (16:26 +0100)
noice.c

diff --git a/noice.c b/noice.c
index 42a1d0daac9be7823d26aa92d5129b9a97131d21..21f4e42ed2004a6141754d8fdc15878fd39d6fdc 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -485,8 +485,6 @@ void
 browse(const char *ipath, const char *ifilter)
 {
        DIR *dirp;
-       int dfd;
-       struct dirent *dp;
        struct entry *dents;
        int i, n, cur;
        int r, ret;
@@ -498,10 +496,6 @@ browse(const char *ipath, const char *ifilter)
 
        cur = 0;
 begin:
-       /* Path and filter should be malloc(3)-ed strings at all times */
-       n = 0;
-       dents = NULL;
-
        dirp = opendir(path);
        if (dirp == NULL) {
                printwarn();
@@ -525,7 +519,6 @@ begin:
 
        for (;;) {
                int nlines;
-               int maxlen;
                int odd;
                char *pathnew;
                char *name;