diff options
-rw-r--r-- | libstore/storecat.c | 8 | ||||
-rw-r--r-- | libstore/storeread.c | 9 |
2 files changed, 5 insertions, 12 deletions
diff --git a/libstore/storecat.c b/libstore/storecat.c index f813847d..b1f4fa57 100644 --- a/libstore/storecat.c +++ b/libstore/storecat.c @@ -35,16 +35,12 @@ main (int argc, char **argv) if (use_file_io) if (block_size) { - off_t runs[2]; struct stat stat; - err = io_stat (source, &stat); if (! err) { - runs[0] = 0; - runs[1] = stat.st_size / block_size; - err = _store_file_create (source, - block_size, runs, 2, &store); + struct store_run run = {0, stat.st_size / block_size}; + err = _store_file_create (source, block_size, &run, 1, &store); } } else diff --git a/libstore/storeread.c b/libstore/storeread.c index 6b38676a..e5057a97 100644 --- a/libstore/storeread.c +++ b/libstore/storeread.c @@ -55,16 +55,13 @@ main (int argc, char **argv) if (use_file_io) if (block_size) { - off_t runs[2]; struct stat stat; - err = io_stat (source, &stat); if (! err) { - runs[0] = 0; - runs[1] = stat.st_size / block_size; - err = _store_file_create (source, - block_size, runs, 2, &store); + struct store_run run = {0, stat.st_size / block_size}; + err = _store_file_create (source, block_size, &run, 1, + &store); } } else |