aboutsummaryrefslogtreecommitdiff
path: root/lwip
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-10 02:52:25 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-10 02:52:25 +0200
commitcb5ab7708b6b7f9941a9ba914ede153601c5be49 (patch)
treebecf4873658e9b3549e111a3a531bbfb76ed2f0d /lwip
parent9fe5e6bf0ccaccec9c5ea2c3a2cea86dbd9c78dc (diff)
downloadhurd-cb5ab7708b6b7f9941a9ba914ede153601c5be49.tar.gz
hurd-cb5ab7708b6b7f9941a9ba914ede153601c5be49.tar.bz2
hurd-cb5ab7708b6b7f9941a9ba914ede153601c5be49.zip
More prototypes fixes
Diffstat (limited to 'lwip')
-rw-r--r--lwip/io-ops.c8
-rw-r--r--lwip/socket-ops.c16
2 files changed, 12 insertions, 12 deletions
diff --git a/lwip/io-ops.c b/lwip/io-ops.c
index 6cc724ce..48d604f3 100644
--- a/lwip/io-ops.c
+++ b/lwip/io-ops.c
@@ -35,7 +35,7 @@
error_t
lwip_S_io_write (struct sock_user *user,
const_data_t data,
- size_t datalen,
+ mach_msg_type_number_t datalen,
off_t offset, vm_size_t * amount)
{
int sent;
@@ -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, vm_size_t amount)
+ mach_msg_type_number_t * datalen, off_t offset, vm_size_t amount)
{
error_t err;
int alloced = 0;
@@ -378,8 +378,8 @@ error_t
lwip_S_io_restrict_auth (struct sock_user * user,
mach_port_t * newobject,
mach_msg_type_name_t * newobject_type,
- const uid_t * uids, size_t uidslen,
- const uid_t * gids, size_t gidslen)
+ const uid_t * uids, mach_msg_type_number_t uidslen,
+ const uid_t * gids, mach_msg_type_number_t gidslen)
{
struct sock_user *newuser;
int i, j;
diff --git a/lwip/socket-ops.c b/lwip/socket-ops.c
index d5e3cb07..3c1f57b5 100644
--- a/lwip/socket-ops.c
+++ b/lwip/socket-ops.c
@@ -308,7 +308,7 @@ lwip_S_socket_shutdown (struct sock_user * user, int direction)
error_t
lwip_S_socket_getopt (struct sock_user * user,
- int level, int option, char **data, size_t * datalen)
+ int level, int option, char **data, mach_msg_type_number_t * datalen)
{
if (!user)
return EOPNOTSUPP;
@@ -323,7 +323,7 @@ lwip_S_socket_getopt (struct sock_user * user,
error_t
lwip_S_socket_setopt (struct sock_user * user,
- int level, int option, const char *data, size_t datalen)
+ int level, int option, const char *data, mach_msg_type_number_t datalen)
{
if (!user)
return EOPNOTSUPP;
@@ -338,11 +338,11 @@ lwip_S_socket_send (struct sock_user * user,
struct sock_addr * addr,
int flags,
const char *data,
- size_t datalen,
+ mach_msg_type_number_t datalen,
const mach_port_t * ports,
- size_t nports,
+ mach_msg_type_number_t nports,
const char *control,
- size_t controllen, vm_size_t * amount)
+ mach_msg_type_number_t controllen, vm_size_t * amount)
{
int sent;
int sockflags;
@@ -386,12 +386,12 @@ lwip_S_socket_recv (struct sock_user * user,
mach_msg_type_name_t * addrporttype,
int flags,
char **data,
- size_t * datalen,
+ mach_msg_type_number_t * datalen,
mach_port_t ** ports,
mach_msg_type_name_t * portstype,
- size_t * nports,
+ mach_msg_type_number_t * nports,
char **control,
- size_t * controllen,
+ mach_msg_type_number_t * controllen,
int *outflags, vm_size_t amount)
{
error_t err;