summaryrefslogtreecommitdiff
path: root/libstore/task.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-03-07 15:01:37 +0000
committerRoland McGrath <roland@gnu.org>2001-03-07 15:01:37 +0000
commitd1d9c14d8e50a8f263775f7e0a71bda5dd6686f6 (patch)
tree49d446315742c508ed2762e3e76560312c071d63 /libstore/task.c
parentb8ba3388ad76fe7e022a44e5422e0723770fc908 (diff)
2001-03-07 Roland McGrath <roland@frob.com>
* store.h (store_write, store_write_meth_t): Make buffer arg const*. * copy.c (copy_write): Likewise. * device.c (dev_write): Likewise. * file.c (file_write): Likewise. (file_byte_write): Likewise. * rdwr.c (store_write): Likewise. * remap.c (remap_write): Likewise. * stripe.c (stripe_write): Likewise. * task.c (task_write): Likewise. * zero.c (zero_write): Likewise.
Diffstat (limited to 'libstore/task.c')
-rw-r--r--libstore/task.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libstore/task.c b/libstore/task.c
index aad91c2c..c25af7a9 100644
--- a/libstore/task.c
+++ b/libstore/task.c
@@ -1,7 +1,7 @@
/* Mach task store backend
- Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
- Written by Miles Bader <miles@gnu.ai.mit.edu>
+ Copyright (C) 1995,96,97,2001 Free Software Foundation, Inc.
+ Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
The GNU Hurd is free software; you can redistribute it and/or
@@ -64,7 +64,8 @@ task_read (struct store *store,
static error_t
task_write (struct store *store,
- store_offset_t addr, size_t index, void *buf, size_t len, size_t *amount)
+ store_offset_t addr, size_t index,
+ const void *buf, size_t len, size_t *amount)
{
size_t bsize = store->block_size;
error_t err = vm_write (store->port, addr * bsize, (vm_address_t)buf, len);
@@ -159,7 +160,7 @@ _store_task_create (task_t task, int flags, size_t block_size,
task, flags, block_size, runs, num_runs, 0, store);
else
err = EINVAL; /* block size less than page size. */
-
+
if (! err)
{
pid_t pid;