summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-03-19 23:57:40 +0000
committerMiles Bader <miles@gnu.org>1996-03-19 23:57:40 +0000
commita55d1e481d46229515418b28981e92109cfdd5c1 (patch)
tree38f26118c0a95ee17f3d422cc43907f7101e822e /libstore
parent8ebb6244180d30d1d465eb8981a3faacfbf9b328 (diff)
Formerly rdwr.c.~9~
Diffstat (limited to 'libstore')
-rw-r--r--libstore/rdwr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstore/rdwr.c b/libstore/rdwr.c
index b9e51fd2..674367bb 100644
--- a/libstore/rdwr.c
+++ b/libstore/rdwr.c
@@ -34,12 +34,12 @@ store_find_first_run (struct store *store, off_t addr,
off_t *base, size_t *index)
{
off_t *tail = store->runs, *tail_end = tail + store->runs_len;
- off_t wrap = store->wrap;
+ off_t wrap_src = store->wrap_src;
- if (addr >= wrap && addr < store->end)
+ if (addr >= wrap_src && addr < store->end)
/* Locate the correct position within a repeating pattern of runs. */
{
- *base = addr / wrap;
+ *base = addr / store->wrap_dst;
addr %= wrap;
}
else
@@ -82,7 +82,7 @@ store_next_run (struct store *store, off_t *runs_end,
/* Wrap around in a repeating RUNS. */
{
*runs = store->runs;
- *base += store->wrap;
+ *base += store->wrap_dst;
*index = 0;
return (*base < store->end);
}