diff options
author | Miles Bader <miles@gnu.org> | 1997-06-20 05:24:46 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-06-20 05:24:46 +0000 |
commit | 3a46a82a8b776b4882fa347ffff785743bfd7e54 (patch) | |
tree | 60358e21e9918bae9ffbfeff10283f4246cb7650 /libstore | |
parent | 994c3a59941eca00c3a3dc88e16efb92e16e65d9 (diff) |
(store_clone):
Use _store_create instead of _make_store.
Update FSF address.
Diffstat (limited to 'libstore')
-rw-r--r-- | libstore/clone.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/libstore/clone.c b/libstore/clone.c index 40647af2..cdbd5747 100644 --- a/libstore/clone.c +++ b/libstore/clone.c @@ -1,9 +1,7 @@ /* Store cloning - Copyright (C) 1996 Free Software Foundation, Inc. - + Copyright (C) 1996, 1997 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> - This file is part of the GNU Hurd. The GNU Hurd is free software; you can redistribute it and/or @@ -18,7 +16,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ #include <string.h> #include <stdlib.h> @@ -29,13 +27,13 @@ error_t store_clone (struct store *from, struct store **to) { - error_t err = 0; - struct store *c = - _make_store (from->class, from->port, from->flags, from->block_size, - from->runs, from->num_runs, from->end); + struct store *c; + error_t err = + _store_create (from->class, from->port, from->flags, from->block_size, + from->runs, from->num_runs, from->end, &c); - if (! c) - return ENOMEM; + if (err) + return err; if (from->name) { |