aboutsummaryrefslogtreecommitdiff
path: root/lwip
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-30 00:59:59 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-30 01:12:13 +0200
commiteb1b2057d839249c955189c2cba8bc37c66d4151 (patch)
tree4af9bc647e298fd06082cc21db1ff60267c925d1 /lwip
parentf0cacda83293e4d792b8d12665fcb795dc11d6fc (diff)
downloadhurd-eb1b2057d839249c955189c2cba8bc37c66d4151.tar.gz
hurd-eb1b2057d839249c955189c2cba8bc37c66d4151.tar.bz2
hurd-eb1b2057d839249c955189c2cba8bc37c66d4151.zip
Fix types of read write and readables methods
This completes 5adb4b834b1e
Diffstat (limited to 'lwip')
-rw-r--r--lwip/io-ops.c6
-rw-r--r--lwip/port/netif/hurdtunif.c6
-rw-r--r--lwip/socket-ops.c4
3 files changed, 8 insertions, 8 deletions
diff --git a/lwip/io-ops.c b/lwip/io-ops.c
index 5461d695..6cc724ce 100644
--- a/lwip/io-ops.c
+++ b/lwip/io-ops.c
@@ -36,7 +36,7 @@ error_t
lwip_S_io_write (struct sock_user *user,
const_data_t data,
size_t datalen,
- off_t offset, mach_msg_type_number_t * amount)
+ off_t offset, vm_size_t * amount)
{
int sent;
int sockflags;
@@ -59,7 +59,7 @@ lwip_S_io_write (struct sock_user *user,
error_t
lwip_S_io_read (struct sock_user * user,
data_t *data,
- size_t * datalen, off_t offset, mach_msg_type_number_t amount)
+ size_t * datalen, off_t offset, vm_size_t amount)
{
error_t err;
int alloced = 0;
@@ -112,7 +112,7 @@ lwip_S_io_seek (struct sock_user * user,
}
error_t
-lwip_S_io_readable (struct sock_user * user, mach_msg_type_number_t * amount)
+lwip_S_io_readable (struct sock_user * user, vm_size_t * amount)
{
error_t err;
if (!user)
diff --git a/lwip/port/netif/hurdtunif.c b/lwip/port/netif/hurdtunif.c
index 79a082cf..c976703f 100644
--- a/lwip/port/netif/hurdtunif.c
+++ b/lwip/port/netif/hurdtunif.c
@@ -348,7 +348,7 @@ error_t
trivfs_S_io_read (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
data_t *data, mach_msg_type_number_t * data_len,
- loff_t offs, size_t amount)
+ loff_t offs, vm_size_t amount)
{
struct hurdtunif *tunif;
struct pbuf *p;
@@ -423,7 +423,7 @@ trivfs_S_io_write (struct trivfs_protid * cred,
mach_msg_type_name_t replytype,
const_data_t data,
mach_msg_type_number_t datalen,
- off_t offset, mach_msg_type_number_t * amount)
+ off_t offset, vm_size_t * amount)
{
struct netif *netif;
struct pbuf *p, *q;
@@ -482,7 +482,7 @@ trivfs_S_io_write (struct trivfs_protid * cred,
kern_return_t
trivfs_S_io_readable (struct trivfs_protid * cred,
mach_port_t reply, mach_msg_type_name_t replytype,
- mach_msg_type_number_t * amount)
+ vm_size_t * amount)
{
struct hurdtunif *tunif;
diff --git a/lwip/socket-ops.c b/lwip/socket-ops.c
index 5b50f58c..d5e3cb07 100644
--- a/lwip/socket-ops.c
+++ b/lwip/socket-ops.c
@@ -342,7 +342,7 @@ lwip_S_socket_send (struct sock_user * user,
const mach_port_t * ports,
size_t nports,
const char *control,
- size_t controllen, mach_msg_type_number_t * amount)
+ size_t controllen, vm_size_t * amount)
{
int sent;
int sockflags;
@@ -392,7 +392,7 @@ lwip_S_socket_recv (struct sock_user * user,
size_t * nports,
char **control,
size_t * controllen,
- int *outflags, mach_msg_type_number_t amount)
+ int *outflags, vm_size_t amount)
{
error_t err;
union { struct sockaddr_storage storage; struct sockaddr sa; } addr;