[PATCH v2 07/11] xfsprogs: change nftw64 to nftw

Jan Tulak
2015-09-03T10:39:51Z

Changelog:
- Subject was "add nftw64 translation for OS X"
- Changed from #define to renaming

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 <jtulak@redhat.com>
---
estimate/xfs_estimate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/estimate/xfs_estimate.c b/estimate/xfs_estimate.c
index 65b7168..632e4ec 100644
--- a/estimate/xfs_estimate.c
+++ b/estimate/xfs_estimate.c
@@ -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);
--
2.4.5