diff options
author | Miles Bader <miles@gnu.org> | 1996-05-10 21:23:37 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-10 21:23:37 +0000 |
commit | 14e996652b417beac057988e956bcafde747576c (patch) | |
tree | 534a45c61765fdf55c1dc6ce1623f0740cb8bf26 /libstore | |
parent | 58381ca3fa40bc6ad953075b1ae37696c4a01a41 (diff) |
(main): Use store_run, not off_t, vectors; tweak accordingly.
Diffstat (limited to 'libstore')
-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 |