summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--storeio/open.c4
-rw-r--r--storeio/open.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/storeio/open.c b/storeio/open.c
index f27dc3ab..b1013a94 100644
--- a/storeio/open.c
+++ b/storeio/open.c
@@ -52,7 +52,7 @@ open_free (struct open *open)
and returns the number of bytes written in AMOUNT. If no error occurs,
zero is returned, otherwise the error code is returned. */
error_t
-open_write (struct open *open, off_t offs, char *buf, size_t len,
+open_write (struct open *open, off_t offs, void *buf, size_t len,
vm_size_t *amount)
{
error_t err;
@@ -75,7 +75,7 @@ open_write (struct open *open, off_t offs, char *buf, size_t len,
otherwise the error code is returned. */
error_t
open_read (struct open *open, off_t offs, size_t amount,
- char **buf, vm_size_t *len)
+ void **buf, vm_size_t *len)
{
error_t err;
if (offs < 0)
diff --git a/storeio/open.h b/storeio/open.h
index efb2128d..cbac2a37 100644
--- a/storeio/open.h
+++ b/storeio/open.h
@@ -50,14 +50,14 @@ void open_free (struct open *open);
(which may be ignored if the device doesn't support random access),
and returns the number of bytes written in AMOUNT. If no error occurs,
zero is returned, otherwise the error code is returned. */
-error_t open_write (struct open *open, off_t offs, char *buf, size_t len,
+error_t open_write (struct open *open, off_t offs, void *buf, size_t len,
size_t *amount);
/* Reads up to AMOUNT bytes from the device into BUF and BUF_LEN using the
standard mach out-array convention. If no error occurs, zero is returned,
otherwise the error code is returned. */
error_t open_read (struct open *open, off_t offs, size_t amount,
- char **buf, size_t *buf_len);
+ void **buf, size_t *buf_len);
/* Set OPEN's location to OFFS, interpreted according to WHENCE as by seek.
The new absolute location is returned in NEW_OFFS (and may not be the same