diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-16 18:54:19 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-16 19:29:10 +0100 |
commit | dd3048b2e483f66571cfa1b2ccebb2091b9ad990 (patch) | |
tree | e8cc587d06c15befd9ab7212938bb0e05a029c23 /pflocal | |
parent | 2e38095efd8cad7fe6feb95dbeb276b7a4287f05 (diff) | |
download | hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.tar.gz hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.tar.bz2 hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.zip |
Make RPC input array parameters const
This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server
side")
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/io.c | 6 | ||||
-rw-r--r-- | pflocal/pf.c | 2 | ||||
-rw-r--r-- | pflocal/socket.c | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/pflocal/io.c b/pflocal/io.c index 4c79ec9f..96b2fc48 100644 --- a/pflocal/io.c +++ b/pflocal/io.c @@ -79,7 +79,7 @@ S_io_read (struct sock_user *user, if they recevie more than one write when not prepared for it. */ error_t S_io_write (struct sock_user *user, - data_t data, mach_msg_type_number_t data_len, + const_data_t data, mach_msg_type_number_t data_len, off_t offset, mach_msg_type_number_t *amount) { error_t err; @@ -479,8 +479,8 @@ error_t S_io_restrict_auth (struct sock_user *user, mach_port_t *new_port, mach_msg_type_name_t *new_port_type, - uid_t *uids, size_t num_uids, - uid_t *gids, size_t num_gids) + const uid_t *uids, size_t num_uids, + const uid_t *gids, size_t num_gids) { if (!user) return EOPNOTSUPP; diff --git a/pflocal/pf.c b/pflocal/pf.c index c905f3bf..37787f91 100644 --- a/pflocal/pf.c +++ b/pflocal/pf.c @@ -89,7 +89,7 @@ S_socket_create (trivfs_protid_t pf, error_t S_socket_create_address (mach_port_t pf, int sockaddr_type, - data_t data, size_t data_len, + const_data_t data, size_t data_len, mach_port_t *addr_port, mach_msg_type_name_t *addr_port_type) { diff --git a/pflocal/socket.c b/pflocal/socket.c index 30ebe33f..8c1ee3e9 100644 --- a/pflocal/socket.c +++ b/pflocal/socket.c @@ -287,9 +287,9 @@ S_socket_peername (struct sock_user *user, /* Send data over a socket, possibly including Mach ports. */ error_t S_socket_send (struct sock_user *user, struct addr *dest_addr, int flags, - data_t data, size_t data_len, - mach_port_t *ports, size_t num_ports, - data_t control, size_t control_len, + const_data_t data, size_t data_len, + const mach_port_t *ports, size_t num_ports, + const_data_t control, size_t control_len, size_t *amount) { error_t err = 0; @@ -531,7 +531,7 @@ S_socket_getopt (struct sock_user *user, error_t S_socket_setopt (struct sock_user *user, - int level, int opt, data_t value, size_t value_len) + int level, int opt, const_data_t value, size_t value_len) { int ret = 0; struct pipe *pipe; |