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 /pfinet | |
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 'pfinet')
-rw-r--r-- | pfinet/iioctl-ops.c | 14 | ||||
-rw-r--r-- | pfinet/io-ops.c | 6 | ||||
-rw-r--r-- | pfinet/socket-ops.c | 10 | ||||
-rw-r--r-- | pfinet/tunnel.c | 2 |
4 files changed, 16 insertions, 16 deletions
diff --git a/pfinet/iioctl-ops.c b/pfinet/iioctl-ops.c index 72e557d9..bccc5e6b 100644 --- a/pfinet/iioctl-ops.c +++ b/pfinet/iioctl-ops.c @@ -76,7 +76,7 @@ enum siocgif_type kern_return_t \ S_iioctl_siocgif##name (struct sock_user *user, \ ifname_t ifnam, \ - sockaddr_t *addr) \ + sockaddr_t *addr) \ { \ return siocgifXaddr (user, ifnam, addr, type); \ } @@ -116,7 +116,7 @@ siocgifXaddr (struct sock_user *user, #define SIOCSIF(name, type) \ kern_return_t \ S_iioctl_siocsif##name (struct sock_user *user, \ - ifname_t ifnam, \ + const ifname_t ifnam, \ sockaddr_t addr) \ { \ return siocsifXaddr (user, ifnam, &addr, type); \ @@ -125,7 +125,7 @@ siocgifXaddr (struct sock_user *user, /* Set some sockaddr type of info. */ static kern_return_t siocsifXaddr (struct sock_user *user, - ifname_t ifnam, + const ifname_t ifnam, sockaddr_t *addr, enum siocgif_type type) { @@ -167,7 +167,7 @@ SIOCSIF (dstaddr, DSTADDR); /* 16 SIOCSIFFLAGS -- Set flags of a network interface. */ kern_return_t S_iioctl_siocsifflags (struct sock_user *user, - ifname_t ifnam, + const ifname_t ifnam, short flags) { error_t err = 0; @@ -238,7 +238,7 @@ S_iioctl_siocgifmetric (struct sock_user *user, /* 24 SIOCSIFMETRIC -- Set metric of a network interface. */ kern_return_t S_iioctl_siocsifmetric (struct sock_user *user, - ifname_t ifnam, + const ifname_t ifnam, int metric) { return EOPNOTSUPP; @@ -247,7 +247,7 @@ S_iioctl_siocsifmetric (struct sock_user *user, /* 25 SIOCDIFADDR -- Delete interface address. */ kern_return_t S_iioctl_siocdifaddr (struct sock_user *user, - ifname_t ifnam, + const ifname_t ifnam, sockaddr_t addr) { return EOPNOTSUPP; @@ -313,7 +313,7 @@ S_iioctl_siocgifmtu (struct sock_user *user, /* 51 SIOCSIFMTU -- Set mtu of a network interface. */ error_t S_iioctl_siocsifmtu (struct sock_user *user, - ifname_t ifnam, + const ifname_t ifnam, int mtu) { error_t err = 0; diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c index a4b012c0..e5df059d 100644 --- a/pfinet/io-ops.c +++ b/pfinet/io-ops.c @@ -36,7 +36,7 @@ error_t S_io_write (struct sock_user *user, - data_t data, + const_data_t data, size_t datalen, off_t offset, mach_msg_type_number_t *amount) @@ -439,8 +439,8 @@ error_t S_io_restrict_auth (struct sock_user *user, mach_port_t *newobject, mach_msg_type_name_t *newobject_type, - uid_t *uids, size_t uidslen, - uid_t *gids, size_t gidslen) + const uid_t *uids, size_t uidslen, + const uid_t *gids, size_t gidslen) { struct sock_user *newuser; int i, j; diff --git a/pfinet/socket-ops.c b/pfinet/socket-ops.c index 71b458c8..490920e0 100644 --- a/pfinet/socket-ops.c +++ b/pfinet/socket-ops.c @@ -292,7 +292,7 @@ S_socket_connect2 (struct sock_user *user1, error_t S_socket_create_address (mach_port_t server, int sockaddr_type, - data_t data, + const_data_t data, mach_msg_type_number_t data_len, mach_port_t *addr_port, mach_msg_type_name_t *addr_port_type) @@ -403,7 +403,7 @@ error_t S_socket_setopt (struct sock_user *user, int level, int option, - data_t data, + const_data_t data, size_t datalen) { error_t err; @@ -430,11 +430,11 @@ error_t S_socket_send (struct sock_user *user, struct sock_addr *addr, int flags, - data_t data, + const_data_t data, size_t datalen, - mach_port_t *ports, + const mach_port_t *ports, size_t nports, - data_t control, + const_data_t control, size_t controllen, mach_msg_type_number_t *amount) { diff --git a/pfinet/tunnel.c b/pfinet/tunnel.c index d140b657..1082404e 100644 --- a/pfinet/tunnel.c +++ b/pfinet/tunnel.c @@ -369,7 +369,7 @@ error_t trivfs_S_io_write (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, - data_t data, + const_data_t data, mach_msg_type_number_t datalen, off_t offset, mach_msg_type_number_t *amount) |