diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-06-25 12:35:56 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-06-25 12:35:56 +0000 |
commit | e7c984df356b8847dd755dc5935f209fd2af8c09 (patch) | |
tree | 49675abec949c37fa45878f4dd4151b660b83eb4 /tests | |
parent | 196c38afa3dc8df7bab3c49b102bdbc9445a60d6 (diff) | |
download | paxutils-e7c984df356b8847dd755dc5935f209fd2af8c09.tar.gz |
Use ST_IS_SPARSE instead of IS_SPARSE_FILE
Diffstat (limited to 'tests')
-rw-r--r-- | tests/genfile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/genfile.c b/tests/genfile.c index 559e210..4ac042c 100644 --- a/tests/genfile.c +++ b/tests/genfile.c @@ -228,8 +228,6 @@ get_size (const char *str, int allow_zero) return n; } -#define IS_SPARSE_FILE(st) ((st).st_size > (st).st_blocks * (st).st_blksize) - void verify_file (char *file_name) { @@ -246,7 +244,7 @@ verify_file (char *file_name) exit (1); } - if (mode == mode_sparse && !IS_SPARSE_FILE (st)) + if (mode == mode_sparse && !ST_IS_SPARSE (st)) exit (1); } } @@ -592,7 +590,7 @@ print_stat (const char *name) else if (strcmp (p, "ctimeH") == 0) print_time (st.st_ctime); else if (strcmp (p, "sparse") == 0) - printf ("%d", IS_SPARSE_FILE (st)); + printf ("%d", ST_IS_SPARSE (st)); else { printf ("\n"); |