]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_estimate: change nftw64 to nftw
authorJan Tulak <jtulak@redhat.com>
Tue, 13 Oct 2015 23:58:23 +0000 (10:58 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 13 Oct 2015 23:58:23 +0000 (10:58 +1100)
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>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
estimate/xfs_estimate.c

index 65b7168d92345d9d85c66a09fa5eb49d9ef75cf6..323137cf62990650c513a0d672316c597acfd002 100644 (file)
@@ -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);