summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-02-25 15:15:49 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-02-25 15:15:49 +0100
commit28b50314341a164b7a6c41d626d3f3701aea291d (patch)
tree98fb36959f8d7718a0e3c2153effabb5d6abceee
parent52342f5f4c2a9562b28d74f2c016b19beaef8fbc (diff)
downloadlr-28b50314341a164b7a6c41d626d3f3701aea291d.tar.gz
lr-28b50314341a164b7a6c41d626d3f3701aea291d.tar.xz
lr-28b50314341a164b7a6c41d626d3f3701aea291d.zip
count number of entries with a nlink_t
-rw-r--r--lr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index d9edc95..5141ad1 100644
--- a/lr.c
+++ b/lr.c
@@ -119,7 +119,8 @@ static time_t now;
 struct fileinfo {
 	char *fpath;
 	size_t prefixl;
-	int depth, entries;
+	int depth;
+	nlink_t entries;
 	struct stat sb;
 	off_t total;
 };