aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorGravatar Hiltjo Posthuma <hiltjo@codemadness.org>2014-12-17 11:51:53 +0000
committerGravatar lostd <lostd@2f30.org>2014-12-18 11:02:34 +0200
commitd444bf1cb6b1ef1c0436dd4b9e8ce0c6ea7b4ee9 (patch)
treeb46cf355f9063f4c2b1c359fc8b1345ef65101f9 /noice.c
parent446fc35593507469a059e7dec85b724c13c5ba4c (diff)
downloadnnn-d444bf1cb6b1ef1c0436dd4b9e8ce0c6ea7b4ee9.tar.gz
style: dont declare vars inline
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/noice.c b/noice.c
index 458ac42..b50cddf 100644
--- a/noice.c
+++ b/noice.c
@@ -515,16 +515,15 @@ void
browse(const char *ipath, const char *ifilter)
{
struct entry *dents;
- int i, n, cur;
- int r, fd;
+ int i, n, cur, r, fd;
+ int nlines, odd;
char *path = xstrdup(ipath);
char *filter = xstrdup(ifilter);
- regex_t filter_re;
- char *cwd, *newpath;
+ regex_t filter_re, re;
+ char *cwd, *newpath, *oldpath = NULL;
struct stat sb;
- char *oldpath;
+ char *name, *bin, *dir, *tmp;
- oldpath = NULL;
begin:
/* Path and filter should be malloc(3)-ed strings at all times */
n = 0;
@@ -552,14 +551,6 @@ begin:
}
for (;;) {
- int nlines;
- int odd;
- char *name;
- char *bin;
- char *dir;
- char *tmp;
- regex_t re;
-
redraw:
nlines = MIN(LINES - 4, n);