diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-12-08 16:03:02 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-12-08 16:03:02 +0000 |
commit | 4e113799198102026e0b1f739e685e77d76b6f80 (patch) | |
tree | 560108e6740fddabe26df5ae3e63e7de85c040bb /tests | |
parent | 86fe737e5c77e063b373d5d01c693c1fd1062a27 (diff) | |
download | paxutils-4e113799198102026e0b1f739e685e77d76b6f80.tar.gz |
Fix creation of large files
Diffstat (limited to 'tests')
-rw-r--r-- | tests/genfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/genfile.c b/tests/genfile.c index 3bacbba..0cf6282 100644 --- a/tests/genfile.c +++ b/tests/genfile.c @@ -57,7 +57,7 @@ const char *program_name; static char *file_name; /* Length of file to generate. */ -static int file_length = 0; +static off_t file_length = 0; /* Pattern to generate. */ static enum pattern pattern = DEFAULT_PATTERN; @@ -221,7 +221,7 @@ struct action size_t checkpoint; int action; char *name; - size_t size; + off_t size; enum pattern pattern; struct timespec ts; }; @@ -322,9 +322,9 @@ static struct argp argp = { void -fill (FILE *fp, size_t length, enum pattern pattern) +fill (FILE *fp, off_t length, enum pattern pattern) { - size_t i; + off_t i; switch (pattern) { |