From: Jan Tulak Date: Tue, 13 Oct 2015 23:58:23 +0000 (+1100) Subject: xfs_estimate: change nftw64 to nftw X-Git-Tag: v4.3.0-rc1~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=137200b70f0706ca9ab7ce7f8bd70dcb31bce8cd;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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);