summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-22 00:30:48 +0000
committerMiles Bader <miles@gnu.org>1996-05-22 00:30:48 +0000
commit63026777f568f7b8bb141710485ce9c56ee31dc5 (patch)
tree0b2ce441f661dabdbc9510b56bd58637f873e6fb
parent2688cf9f560a7ee600d0ea61f43e8549a065813e (diff)
(store_clone): Copy the flags by passing them to _make_store.
Use CLASS field instead of METHS field.
-rw-r--r--libstore/clone.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libstore/clone.c b/libstore/clone.c
index 56749647..bec2e88d 100644
--- a/libstore/clone.c
+++ b/libstore/clone.c
@@ -31,14 +31,12 @@ store_clone (struct store *from, struct store **to)
{
error_t err = 0;
struct store *c =
- _make_store (from->class, from->meths, from->port, from->block_size,
+ _make_store (from->class, from->port, from->flags, from->block_size,
from->runs, from->num_runs, from->end);
if (! c)
return ENOMEM;
- c->flags = from->flags;
-
if (from->misc_len)
{
c->misc = malloc (from->misc_len);
@@ -76,8 +74,8 @@ store_clone (struct store *from, struct store **to)
}
}
- if (!err && from->meths->clone)
- err = (*from->meths->clone)(from, c);
+ if (!err && from->class->clone)
+ err = (*from->class->clone)(from, c);
if (err)
store_free (c);