From 5adb4b834b1eba82b7f3eca6324bed0355cae0af Mon Sep 17 00:00:00 2001 From: Etienne Brateau Date: Mon, 29 Aug 2022 21:36:17 +0200 Subject: Fix types of read write and readables methods Message-Id: <20220829193617.13481-1-etienne.brateau@gmail.com> --- storeio/open.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'storeio/open.h') diff --git a/storeio/open.h b/storeio/open.h index 6be930a6..ad2678ff 100644 --- a/storeio/open.h +++ b/storeio/open.h @@ -51,13 +51,13 @@ void 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, const void *buf, size_t len, - size_t *amount); + vm_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, - void **buf, size_t *buf_len); +error_t open_read (struct open *open, off_t offs, vm_size_t amount, + void **buf, vm_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