From 28b38582ef08067baed321bf76de2c0ea82db466 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 8 Nov 2017 13:14:30 +0100 Subject: callback: use ino_t for entry count. --- lr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lr.c') diff --git a/lr.c b/lr.c index fa6c9ca..181fb82 100644 --- a/lr.c +++ b/lr.c @@ -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); -- cgit 1.4.1