summaryrefslogtreecommitdiff
path: root/libstore/file.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-10 21:18:13 +0000
committerMiles Bader <miles@gnu.org>1996-05-10 21:18:13 +0000
commitba1ea946e8eab84ddb497be88b35379589fbc811 (patch)
tree1322a47de2ea6abf6e6b72e37cabe7c50f462820 /libstore/file.c
parentb8515ef09711481f01ad2d86dbd54da27eea34a5 (diff)
(store_file_create, _store_file_create):
Use store_run, not off_t, vectors; tweak accordingly.
Diffstat (limited to 'libstore/file.c')
-rw-r--r--libstore/file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libstore/file.c b/libstore/file.c
index 125394d7..44e34c7b 100644
--- a/libstore/file.c
+++ b/libstore/file.c
@@ -109,23 +109,23 @@ file_byte_meths = {file_byte_read, file_byte_write};
error_t
store_file_create (file_t file, struct store **store)
{
- off_t runs[2];
+ struct store_run run;
struct stat stat;
error_t err = io_stat (file, &stat);
if (err)
return err;
- runs[0] = 0;
- runs[1] = stat.st_size;
+ run.start = 0;
+ run.length = stat.st_size;
- return _store_file_create (file, 1, runs, 2, store);
+ return _store_file_create (file, 1, &run, 1, store);
}
/* Like store_file_create, but doesn't query the file for information. */
error_t
_store_file_create (file_t file, size_t block_size,
- const off_t *runs, size_t num_runs,
+ const struct store_run *runs, size_t num_runs,
struct store **store)
{
if (block_size == 1)