summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);