aboutsummaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'libstore')
-rw-r--r--libstore/nbd.c6
-rw-r--r--libstore/rdwr.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/libstore/nbd.c b/libstore/nbd.c
index 3138af01..8e0892e3 100644
--- a/libstore/nbd.c
+++ b/libstore/nbd.c
@@ -119,7 +119,7 @@ nbd_write (struct store *store,
type: htonl (1), /* WRITE */
};
error_t err;
- mach_msg_type_number_t cc;
+ vm_size_t cc;
addr <<= store->log2_block_size;
*amount = 0;
@@ -178,7 +178,7 @@ nbd_read (struct store *store,
requested can be found in CHUNK. */
inline error_t request_chunk (char **buf, size_t *len)
{
- mach_msg_type_number_t cc;
+ vm_size_t cc;
chunk = (amount - ofs) < NBD_IO_MAX ? (amount - ofs) : NBD_IO_MAX;
@@ -435,7 +435,7 @@ nbdclose (struct store *store)
magic: NBD_REQUEST_MAGIC,
type: htonl (2), /* disconnect */
};
- mach_msg_type_number_t cc;
+ vm_size_t cc;
(void) io_write (store->port, (char *) &req, sizeof req, -1, &cc);
/* Close the socket. */
diff --git a/libstore/rdwr.c b/libstore/rdwr.c
index 9737c515..f443ad9f 100644
--- a/libstore/rdwr.c
+++ b/libstore/rdwr.c
@@ -120,7 +120,7 @@ store_write (struct store *store,
else
/* ARGH, we've got to split up the write ... */
{
- mach_msg_type_number_t try, written;
+ vm_size_t try, written;
/* Write the initial bit in the first run. Errors here are returned. */
try = (run->length - addr) << block_shift;
@@ -138,7 +138,7 @@ store_write (struct store *store,
&& run->start >= 0) /* Check for holes. */
/* Ok, we can write in this run, at least a bit. */
{
- mach_msg_type_number_t seg_written;
+ vm_size_t seg_written;
if ((len >> block_shift) <= run->length)
try = len;