From 137200b70f0706ca9ab7ce7f8bd70dcb31bce8cd Mon Sep 17 00:00:00 2001 From: Jan Tulak Date: Wed, 14 Oct 2015 10:58:23 +1100 Subject: [PATCH] xfs_estimate: change nftw64 to nftw There is only one usage of nftw64 in entire xfsprogs, but multiple usages of nftw. It seems the 64 variant has no reason, and causes difficulties with some other platforms which has only nftw call. Signed-off-by: Jan Tulak Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- estimate/xfs_estimate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/estimate/xfs_estimate.c b/estimate/xfs_estimate.c index 65b7168d9..323137cf6 100644 --- a/estimate/xfs_estimate.c +++ b/estimate/xfs_estimate.c @@ -45,7 +45,7 @@ cvtnum(char *s) return 0LL; } -int ffn(const char *, const struct stat64 *, int, struct FTW *); +int ffn(const char *, const struct stat *, int, struct FTW *); #define BLOCKSIZE 4096 #define INODESIZE 256 @@ -168,7 +168,7 @@ main(int argc, char **argv) ndirs=0LL; /* number of directories */ nspecial=0LL; /* number of special files */ - nftw64(argv[optind], ffn, 40, FTW_PHYS | FTW_MOUNT); + nftw(argv[optind], ffn, 40, FTW_PHYS | FTW_MOUNT); if (__debug) { printf(_("dirsize=%llu\n"), dirsize); @@ -214,7 +214,7 @@ main(int argc, char **argv) } int -ffn(const char *path, const struct stat64 *stb, int flags, struct FTW *f) +ffn(const char *path, const struct stat *stb, int flags, struct FTW *f) { /* cases are in most-encountered to least-encountered order */ dirsize+=PERDIRENTRY+strlen(path); -- 2.47.2