aboutsummaryrefslogtreecommitdiff
path: root/libstore/nbd.c
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-05-09 00:31:04 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-10 02:18:14 +0200
commit070292f3118b75de9fc0e79fac6ca0186d157c28 (patch)
treebe54835aaa641d50e0453747092d5e53e1cd4958 /libstore/nbd.c
parent4ba239ddbe936322bd7f9a8b17715ebaeb1cb800 (diff)
downloadhurd-070292f3118b75de9fc0e79fac6ca0186d157c28.tar.gz
hurd-070292f3118b75de9fc0e79fac6ca0186d157c28.tar.bz2
hurd-070292f3118b75de9fc0e79fac6ca0186d157c28.zip
libstore: Port to x86_64
Message-Id: <20230508213136.608575-10-bugaevc@gmail.com>
Diffstat (limited to 'libstore/nbd.c')
-rw-r--r--libstore/nbd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libstore/nbd.c b/libstore/nbd.c
index 8e0892e3..df949a78 100644
--- a/libstore/nbd.c
+++ b/libstore/nbd.c
@@ -171,12 +171,13 @@ nbd_read (struct store *store,
error_t err;
size_t ofs, chunk;
char *databuf, *piecebuf;
- size_t databuflen, piecelen;
+ size_t databuflen;
+ mach_msg_type_number_t piecelen;
/* Send a request for the largest possible piece of remaining data and
read the first piece of its reply into PIECEBUF, PIECELEN. The amount
requested can be found in CHUNK. */
- inline error_t request_chunk (char **buf, size_t *len)
+ inline error_t request_chunk (char **buf, mach_msg_type_number_t *len)
{
vm_size_t cc;