Skip to content

Commit 8ad8b4d

Browse files
committed
Removes unused local variable len
1 parent 673ec07 commit 8ad8b4d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/dir.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,6 @@ static int enum_dsk(char *dir, char *name, char *ver, FINFO **finfo_buf)
10331033
FINFO *prevp;
10341034
FINFO *nextp;
10351035
int n, rval;
1036-
size_t len;
10371036
DIR *dirp;
10381037
struct stat sbuf;
10391038
char namebuf[MAXPATHLEN];
@@ -1132,7 +1131,7 @@ static int enum_ufs_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
11321131
struct direct *dp;
11331132
FINFO *prevp;
11341133
FINFO *nextp;
1135-
int n, len, rval;
1134+
int n, rval;
11361135
struct find_t dirp;
11371136
/* struct passwd *pwd; -- From author support */
11381137
struct stat sbuf;
@@ -1201,7 +1200,6 @@ static int enum_ufs_prop(char *dir, char *name, char *ver, FINFO **finfo_buf)
12011200
FINFO *prevp;
12021201
FINFO *nextp;
12031202
int n, rval;
1204-
size_t len;
12051203
DIR *dirp;
12061204
/* struct passwd *pwd; -- From author support */
12071205
struct stat sbuf;
@@ -1347,7 +1345,6 @@ static int enum_ufs(char *dir, char *name, char *ver, FINFO **finfo_buf)
13471345
}
13481346

13491347
strlcpy(namebuf, dirp.name, sizeof(namebuf));
1350-
len = strlen(namebuf);
13511348
nextp->ino = sbuf.st_ino;
13521349
n++;
13531350
}
@@ -1361,7 +1358,6 @@ static int enum_ufs(char *dir, char *name, char *ver, FINFO **finfo_buf)
13611358
FINFO *prevp;
13621359
FINFO *nextp;
13631360
int n, rval;
1364-
size_t len;
13651361
DIR *dirp;
13661362
struct stat sbuf;
13671363
char namebuf[MAXPATHLEN];

0 commit comments

Comments
 (0)