]> Sergey Matveev's repositories - nnn.git/commitdiff
remove unused variables
authorHiltjo Posthuma <hiltjo@codemadness.org>
Wed, 17 Dec 2014 11:48:34 +0000 (11:48 +0000)
committerlostd <lostd@2f30.org>
Thu, 18 Dec 2014 09:02:34 +0000 (11:02 +0200)
noice.c

diff --git a/noice.c b/noice.c
index 135f453b6bac8a8168d541431d491dc726a13723..458ac4228df66a0738ab396360f8b49140098cd1 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -423,8 +423,7 @@ dentfill(char *path, struct entry **dents,
        struct dirent *dp;
        struct stat sb;
        char *newpath;
-       int n = 0;
-       int fd, r;
+       int r, n = 0;
 
        dirp = opendir(path);
        if (dirp == NULL)
@@ -517,7 +516,7 @@ browse(const char *ipath, const char *ifilter)
 {
        struct entry *dents;
        int i, n, cur;
-       int r, ret, fd;
+       int r, fd;
        char *path = xstrdup(ipath);
        char *filter = xstrdup(ifilter);
        regex_t filter_re;