summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-11-08 13:14:30 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-11-08 13:14:30 +0100
commit28b38582ef08067baed321bf76de2c0ea82db466 (patch)
tree7628acf2aaddfe05faa2b510a6630e23999dc256
parentd2b437219f20ef51a1964ccec0241770626c3510 (diff)
downloadlr-28b38582ef08067baed321bf76de2c0ea82db466.tar.gz
lr-28b38582ef08067baed321bf76de2c0ea82db466.tar.xz
lr-28b38582ef08067baed321bf76de2c0ea82db466.zip
callback: use ino_t for entry count.
-rw-r--r--lr.c5
1 files changed, 3 insertions, 2 deletions
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);