diff options
author | Miles Bader <miles@gnu.org> | 1996-05-22 00:17:45 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-22 00:17:45 +0000 |
commit | c8e677e1b0026cbc7f2ba35f9029869bff2986f5 (patch) | |
tree | 13dcbb60f98fd4dfac1b82f519830660a6dfddd5 /libstore | |
parent | a63ce6501d44f7761a318d6a6f1e974a83a1960b (diff) |
(store_set_children): Function moved to kids.c.
Diffstat (limited to 'libstore')
-rw-r--r-- | libstore/set.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/libstore/set.c b/libstore/set.c index 8daba9dd..479184d4 100644 --- a/libstore/set.c +++ b/libstore/set.c @@ -48,27 +48,6 @@ store_set_runs (struct store *store, const struct store_run *runs, unsigned num_ return 0; } -/* Set STORE's current children list to (a copy of) CHILDREN and NUM_CHILDREN. */ -error_t -store_set_children (struct store *store, - struct store *const *children, unsigned num_children) -{ - unsigned size = num_children * sizeof (struct store_run); - struct store **copy = malloc (size); - - if (!copy) - return ENOMEM; - - if (store->children) - free (store->children); - - bcopy (children, copy, size); - store->children = copy; - store->num_children = num_children; - - return 0; -} - /* Sets the name associated with STORE to a copy of NAME. */ error_t store_set_name (struct store *store, const char *name) |