From ba1ea946e8eab84ddb497be88b35379589fbc811 Mon Sep 17 00:00:00 2001
From: Miles Bader <miles@gnu.org>
Date: Fri, 10 May 1996 21:18:13 +0000
Subject: (store_file_create, _store_file_create):   Use store_run, not off_t,
 vectors; tweak accordingly.

---
 libstore/file.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'libstore/file.c')

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)
-- 
cgit v1.2.3