summaryrefslogtreecommitdiff
path: root/libstore/store.h
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/store.h
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/store.h')
-rw-r--r--libstore/store.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libstore/store.h b/libstore/store.h
index 6d95746a..141b946f 100644
--- a/libstore/store.h
+++ b/libstore/store.h
@@ -125,7 +125,8 @@ struct store
typedef error_t (*store_write_meth_t)(struct store *store,
store_offset_t addr, size_t index,
- void *buf, mach_msg_type_number_t len,
+ const void *buf,
+ mach_msg_type_number_t len,
mach_msg_type_number_t *amount);
typedef error_t (*store_read_meth_t)(struct store *store,
store_offset_t addr, size_t index,
@@ -296,7 +297,8 @@ error_t store_remap (struct store *source,
/* Write LEN bytes from BUF to STORE at ADDR. Returns the amount written in
AMOUNT (in bytes). ADDR is in BLOCKS (as defined by STORE->block_size). */
error_t store_write (struct store *store,
- store_offset_t addr, void *buf, size_t len, size_t *amount);
+ store_offset_t addr, const void *buf, size_t len,
+ size_t *amount);
/* Read AMOUNT bytes from STORE at ADDR into BUF & LEN (which following the
usual mach buffer-return semantics) to STORE at ADDR. ADDR is in BLOCKS