Commit 28b38582 authored by Leah Neukirchen's avatar Leah Neukirchen

callback: use ino_t for entry count.

parent d2b43721
......@@ -1838,7 +1838,7 @@ print(const void *nodep, const VISIT which, const int depth)
}
int
callback(const char *fpath, const struct stat *sb, int depth, int entries, off_t total)
callback(const char *fpath, const struct stat *sb, int depth, ino_t entries, off_t total)
{
struct fileinfo *fi = malloc(sizeof (struct fileinfo));
fi->fpath = strdup(fpath);
......@@ -1913,7 +1913,8 @@ recurse(char *path, struct history *h, int guessdir)
size_t l = strlen(path), j = l && path[l-1] == '/' ? l - 1 : l;
struct stat st;
struct history new;
int r, entries;
int r;
ino_t entries;
const char *fpath = *path ? path : ".";
int resolve = Lflag || (Hflag && !h);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment