summaryrefslogtreecommitdiff
path: root/libstore/file.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-06-20 05:19:11 +0000
committerMiles Bader <miles@gnu.org>1997-06-20 05:19:11 +0000
commit28db09d5b511b19901f8029254e0166c88183922 (patch)
treeca34a8dd40269476911a48086f540adacef46bb0 /libstore/file.c
parentae1df487b43abf9c64ba982d379b51f24cfad3c3 (diff)
(_store_file_create):
Use _store_create instead of _make_store. Update FSF address.
Diffstat (limited to 'libstore/file.c')
-rw-r--r--libstore/file.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/libstore/file.c b/libstore/file.c
index 24c036ab..d9ff9aac 100644
--- a/libstore/file.c
+++ b/libstore/file.c
@@ -1,9 +1,7 @@
/* Mach file store backend
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
-
+ Copyright (C) 1995, 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 <stdio.h>
#include <string.h>
@@ -158,15 +156,11 @@ _store_file_create (file_t file, int flags, size_t block_size,
struct store **store)
{
if (block_size == 1)
- *store = _make_store (&store_file_byte_class,
- file, flags, 1, runs, num_runs, 0);
- else if ((block_size & (block_size - 1)) == 0)
- *store =
- _make_store (&store_file_class,
- file, flags, block_size, runs, num_runs, 0);
+ return _store_create (&store_file_byte_class,
+ file, flags, 1, runs, num_runs, 0, store);
else
- return EINVAL; /* block size not a power of two */
- return *store ? 0 : ENOMEM;
+ return _store_create (&store_file_class,
+ file, flags, block_size, runs, num_runs, 0, store);
}
/* Open the file NAME, and return the corresponding store in STORE. */