summaryrefslogtreecommitdiff
path: root/libstore/storecat.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-10 21:23:37 +0000
committerMiles Bader <miles@gnu.org>1996-05-10 21:23:37 +0000
commit14e996652b417beac057988e956bcafde747576c (patch)
tree534a45c61765fdf55c1dc6ce1623f0740cb8bf26 /libstore/storecat.c
parent58381ca3fa40bc6ad953075b1ae37696c4a01a41 (diff)
(main): Use store_run, not off_t, vectors; tweak accordingly.
Diffstat (limited to 'libstore/storecat.c')
-rw-r--r--libstore/storecat.c8
1 files changed, 2 insertions, 6 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