From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: libc-alpha@sourceware.org
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>, commit-hurd@gnu.org
Subject: [hurd,commited] hurd: Make RPC input array parameters const
Date: Sun, 16 Jan 2022 19:52:47 +0100 [thread overview]
Message-ID: <20220116185247.1399705-1-samuel.thibault@ens-lyon.org> (raw)
This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server
side")
---
hurd/hurdauth.c | 4 ++--
hurd/hurdmsg.c | 14 +++++++-------
hurd/report-wait.c | 2 +-
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/hurd/hurdauth.c b/hurd/hurdauth.c
index e602179a3f..9086e9484c 100644
--- a/hurd/hurdauth.c
+++ b/hurd/hurdauth.c
@@ -165,8 +165,8 @@ _S_msg_add_auth (mach_port_t me,
kern_return_t
_S_msg_del_auth (mach_port_t me,
task_t task,
- intarray_t uids, mach_msg_type_number_t nuids,
- intarray_t gids, mach_msg_type_number_t ngids)
+ const_intarray_t uids, mach_msg_type_number_t nuids,
+ const_intarray_t gids, mach_msg_type_number_t ngids)
{
error_t err;
auth_t newauth;
diff --git a/hurd/hurdmsg.c b/hurd/hurdmsg.c
index 4e6ddf2836..cad8300968 100644
--- a/hurd/hurdmsg.c
+++ b/hurd/hurdmsg.c
@@ -93,7 +93,7 @@ _S_msg_get_init_ports (mach_port_t msgport, mach_port_t auth,
kern_return_t
_S_msg_set_init_ports (mach_port_t msgport, mach_port_t auth,
- mach_port_t *ports, mach_msg_type_number_t nports)
+ const mach_port_t *ports, mach_msg_type_number_t nports)
{
mach_msg_type_number_t i;
error_t err;
@@ -243,7 +243,7 @@ _S_msg_set_init_int (mach_port_t msgport, mach_port_t auth,
kern_return_t
_S_msg_set_init_ints (mach_port_t msgport, mach_port_t auth,
- int *values, mach_msg_type_number_t nvalues)
+ const int *values, mach_msg_type_number_t nvalues)
{
error_t err;
mach_msg_type_number_t i;
@@ -295,7 +295,7 @@ _S_msg_set_fd (mach_port_t msgport, mach_port_t auth,
kern_return_t
_S_msg_get_env_variable (mach_port_t msgport,
- string_t variable, //
+ const_string_t variable, //
char **data, mach_msg_type_number_t *datalen)
{
error_t err;
@@ -322,8 +322,8 @@ _S_msg_get_env_variable (mach_port_t msgport,
kern_return_t
_S_msg_set_env_variable (mach_port_t msgport, mach_port_t auth,
- string_t variable, //
- string_t value, //
+ const_string_t variable, //
+ const_string_t value, //
int replace)
{
AUTHCHECK;
@@ -367,7 +367,7 @@ _S_msg_get_environment (mach_port_t msgport,
kern_return_t
_S_msg_set_environment (mach_port_t msgport, mach_port_t auth,
- char *data, mach_msg_type_number_t datalen)
+ const char *data, mach_msg_type_number_t datalen)
{
int _hurd_split_args (char *, mach_msg_type_number_t, char **);
int envc;
@@ -441,6 +441,6 @@ out:
kern_return_t
_S_msg_set_dtable (mach_port_t process,
mach_port_t refport,
- portarray_t dtable,
+ const_portarray_t dtable,
mach_msg_type_number_t dtableCnt)
{ return EOPNOTSUPP; }
diff --git a/hurd/report-wait.c b/hurd/report-wait.c
index 49f38bff07..676a34a480 100644
--- a/hurd/report-wait.c
+++ b/hurd/report-wait.c
@@ -234,7 +234,7 @@ _S_msg_report_wait (mach_port_t msgport, thread_t thread,
kern_return_t
_S_msg_describe_ports (mach_port_t msgport, mach_port_t refport,
- mach_port_t *ports, mach_msg_type_number_t nports,
+ const mach_port_t *ports, mach_msg_type_number_t nports,
char **desc, mach_msg_type_number_t *desclen)
{
char *p, *end;
--
2.34.1
reply other threads:[~2022-01-16 18:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220116185247.1399705-1-samuel.thibault@ens-lyon.org \
--to=samuel.thibault@ens-lyon.org \
--cc=commit-hurd@gnu.org \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).