mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
style: dont declare vars inline
This commit is contained in:
parent
446fc35593
commit
d444bf1cb6
19
noice.c
19
noice.c
|
@ -515,16 +515,15 @@ void
|
||||||
browse(const char *ipath, const char *ifilter)
|
browse(const char *ipath, const char *ifilter)
|
||||||
{
|
{
|
||||||
struct entry *dents;
|
struct entry *dents;
|
||||||
int i, n, cur;
|
int i, n, cur, r, fd;
|
||||||
int r, fd;
|
int nlines, odd;
|
||||||
char *path = xstrdup(ipath);
|
char *path = xstrdup(ipath);
|
||||||
char *filter = xstrdup(ifilter);
|
char *filter = xstrdup(ifilter);
|
||||||
regex_t filter_re;
|
regex_t filter_re, re;
|
||||||
char *cwd, *newpath;
|
char *cwd, *newpath, *oldpath = NULL;
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
char *oldpath;
|
char *name, *bin, *dir, *tmp;
|
||||||
|
|
||||||
oldpath = NULL;
|
|
||||||
begin:
|
begin:
|
||||||
/* Path and filter should be malloc(3)-ed strings at all times */
|
/* Path and filter should be malloc(3)-ed strings at all times */
|
||||||
n = 0;
|
n = 0;
|
||||||
|
@ -552,14 +551,6 @@ begin:
|
||||||
}
|
}
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
int nlines;
|
|
||||||
int odd;
|
|
||||||
char *name;
|
|
||||||
char *bin;
|
|
||||||
char *dir;
|
|
||||||
char *tmp;
|
|
||||||
regex_t re;
|
|
||||||
|
|
||||||
redraw:
|
redraw:
|
||||||
nlines = MIN(LINES - 4, n);
|
nlines = MIN(LINES - 4, n);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue