From e7c984df356b8847dd755dc5935f209fd2af8c09 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 25 Jun 2006 12:35:56 +0000 Subject: Use ST_IS_SPARSE instead of IS_SPARSE_FILE --- tests/genfile.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests') 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"); -- cgit v1.2.1