diff options
author | Etienne Brateau <etienne.brateau@gmail.com> | 2022-08-29 21:36:17 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-29 21:51:19 +0200 |
commit | 5adb4b834b1eba82b7f3eca6324bed0355cae0af (patch) | |
tree | 3666abd2c80c0821cb365a4238e6ae6ee0964d86 /libstore/nbd.c | |
parent | ac09ca6c033185382fbfb60e5e47fd1e8a85f6aa (diff) | |
download | hurd-5adb4b834b1eba82b7f3eca6324bed0355cae0af.tar.gz hurd-5adb4b834b1eba82b7f3eca6324bed0355cae0af.tar.bz2 hurd-5adb4b834b1eba82b7f3eca6324bed0355cae0af.zip |
Fix types of read write and readables methods
Message-Id: <20220829193617.13481-1-etienne.brateau@gmail.com>
Diffstat (limited to 'libstore/nbd.c')
-rw-r--r-- | libstore/nbd.c | 6 |
1 files changed, 3 insertions, 3 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. */ |