diff options
author | Miles Bader <miles@gnu.org> | 1997-06-20 05:24:06 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-06-20 05:24:06 +0000 |
commit | 994c3a59941eca00c3a3dc88e16efb92e16e65d9 (patch) | |
tree | fb14328f7fb9b104032c3debb7a608b13a62633d /libstore | |
parent | cf07eb2631ac0a82bee275a426f09bc93f27e902 (diff) |
(_store_task_create):
Use _store_create instead of _make_store.
Update FSF address.
Diffstat (limited to 'libstore')
-rw-r--r-- | libstore/task.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/libstore/task.c b/libstore/task.c index b5289480..d2cce5f3 100644 --- a/libstore/task.c +++ b/libstore/task.c @@ -1,10 +1,8 @@ /* Mach task store backend Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. - Written by Miles Bader <miles@gnu.ai.mit.edu> - - This task is part of the GNU Hurd. + This file is part of the GNU Hurd. The GNU Hurd is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -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> @@ -156,16 +154,11 @@ _store_task_create (task_t task, int flags, size_t block_size, { error_t err = 0; - if ((block_size & (block_size - 1)) == 0 && block_size >= vm_page_size) - { - *store = - _make_store (&store_task_class, - task, flags, block_size, runs, num_runs, 0); - if (! *store) - err = ENOMEM; - } + if (block_size >= vm_page_size) + err = _store_create (&store_task_class, + task, flags, block_size, runs, num_runs, 0, store); else - err = EINVAL; /* block size not a power of two */ + err = EINVAL; /* block size less than page size. */ if (! err) { |