diff options
author | Miles Bader <miles@gnu.org> | 1996-09-14 17:43:19 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-09-14 17:43:19 +0000 |
commit | 33879dcfec625bebed25c6aaba12c8982cd29ff7 (patch) | |
tree | 973424188786eae82fbb2cb042e339919ee321df /libstore | |
parent | 274ed2eaa3e365cb9355329883e73065a90710d1 (diff) |
(store_write, store_read): Use void * for buffers, not char *.
Diffstat (limited to 'libstore')
-rw-r--r-- | libstore/rdwr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libstore/rdwr.c b/libstore/rdwr.c index 9e9d3f84..26f713eb 100644 --- a/libstore/rdwr.c +++ b/libstore/rdwr.c @@ -94,7 +94,7 @@ store_next_run (struct store *store, struct store_run *runs_end, in AMOUNT. ADDR is in BLOCKS (as defined by STORE->block_size). */ error_t store_write (struct store *store, - off_t addr, char *buf, size_t len, size_t *amount) + off_t addr, void *buf, size_t len, size_t *amount) { error_t err; size_t index; @@ -163,7 +163,7 @@ store_write (struct store *store, (as defined by STORE->block_size). */ error_t store_read (struct store *store, - off_t addr, size_t amount, char **buf, size_t *len) + off_t addr, size_t amount, void **buf, size_t *len) { error_t err; size_t index; @@ -185,7 +185,7 @@ store_read (struct store *store, /* WHOLE_BUF and WHOLE_BUF_LEN will point to a buff that's large enough to hold the entire request. This is initially whatever the user passed in, but we'll change it as necessary. */ - char *whole_buf = *buf, *buf_end; + void *whole_buf = *buf, *buf_end; size_t whole_buf_len = *len; /* Read LEN bytes from the store address ADDR into BUF_END. BUF_END @@ -195,7 +195,7 @@ store_read (struct store *store, { /* SEG_BUF and SEG_LEN are the buffer for a particular bit of the whole (within one run). */ - char *seg_buf = buf_end; + void *seg_buf = buf_end; size_t seg_buf_len = len; error_t err = (*read)(store, addr, index, len, &seg_buf, &seg_buf_len); |