From fad27b7a697bc0ae039a365588ed331506104e62 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 23 Sep 1996 19:58:30 +0000 Subject: (open_read, open_write): Use void * buffers. --- storeio/open.c | 4 ++-- storeio/open.h | 4 ++-- 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 -- cgit v1.2.3