aboutsummaryrefslogtreecommitdiff
path: root/trans
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-01 13:53:31 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-01 18:05:00 +0100
commita8d51bf0ce26fd26e00338540857f43b8a99e126 (patch)
tree917f249fbf6873280161959c74a71b8edb0f4cea /trans
parente2b75a67395fbbdd36bb0bceaea2465a2a1fa172 (diff)
downloadhurd-a8d51bf0ce26fd26e00338540857f43b8a99e126.tar.gz
hurd-a8d51bf0ce26fd26e00338540857f43b8a99e126.tar.bz2
hurd-a8d51bf0ce26fd26e00338540857f43b8a99e126.zip
Fix build warnings
No actual behavior change.
Diffstat (limited to 'trans')
-rw-r--r--trans/crash.c2
-rw-r--r--trans/fakeroot.c8
-rw-r--r--trans/password.c4
-rw-r--r--trans/streamio.c2
-rw-r--r--trans/symlink.c2
5 files changed, 9 insertions, 9 deletions
diff --git a/trans/crash.c b/trans/crash.c
index d20b9f43..838ae9b2 100644
--- a/trans/crash.c
+++ b/trans/crash.c
@@ -646,7 +646,7 @@ parse_opt (int opt, char *arg, struct argp_state *state)
case 'c': crash_how = crash_corefile; break;
case 'C':
{
- char *errp;
+ const char *errp;
if (! template_valid (arg, &errp))
{
argp_error (state, "Invalid template: ...'%s'", errp);
diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index 7084d4a5..e8825abf 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -282,11 +282,11 @@ netfs_check_open_permissions (struct iouser *user, struct node *np,
error_t
netfs_S_dir_lookup (struct protid *diruser,
- char *filename,
+ string_t filename,
int flags,
mode_t mode,
retry_type *do_retry,
- char *retry_name,
+ string_t retry_name,
mach_port_t *retry_port,
mach_msg_type_name_t *retry_port_type)
{
@@ -907,8 +907,8 @@ kern_return_t
netfs_S_file_exec_paths (struct protid *user,
task_t task,
int flags,
- char *path,
- char *abspath,
+ string_t path,
+ string_t abspath,
char *argv,
size_t argvlen,
char *envp,
diff --git a/trans/password.c b/trans/password.c
index b9f9c5bd..2b16cefd 100644
--- a/trans/password.c
+++ b/trans/password.c
@@ -141,7 +141,7 @@ trivfs_goaway (struct trivfs_control *fsys, int flags)
/* Implement password_check_user as described in <hurd/password.defs>. */
kern_return_t
-S_password_check_user (struct trivfs_protid *cred, uid_t user, char *pw,
+S_password_check_user (struct trivfs_protid *cred, uid_t user, string_t pw,
mach_port_t *port, mach_msg_type_name_t *port_type)
{
struct ugids ugids = UGIDS_INIT;
@@ -189,7 +189,7 @@ S_password_check_user (struct trivfs_protid *cred, uid_t user, char *pw,
/* Implement password_check_group as described in <hurd/password.defs>. */
kern_return_t
-S_password_check_group (struct trivfs_protid *cred, uid_t group, char *pw,
+S_password_check_group (struct trivfs_protid *cred, uid_t group, string_t pw,
mach_port_t *port, mach_msg_type_name_t *port_type)
{
struct ugids ugids = UGIDS_INIT;
diff --git a/trans/streamio.c b/trans/streamio.c
index 44aabef1..fb449a8a 100644
--- a/trans/streamio.c
+++ b/trans/streamio.c
@@ -998,7 +998,7 @@ dev_read (size_t amount, void **buf, size_t *len, int nowait)
error_t
device_read_reply_inband (mach_port_t reply, error_t errorcode,
- char *data, u_int datalen)
+ io_buf_ptr_inband_t data, u_int datalen)
{
if (reply != phys_reply)
return EOPNOTSUPP;
diff --git a/trans/symlink.c b/trans/symlink.c
index 80d60f64..f7883448 100644
--- a/trans/symlink.c
+++ b/trans/symlink.c
@@ -129,7 +129,7 @@ S_fsys_getroot (mach_port_t fsys_t,
uid_t *gids, size_t ngids,
int flags,
retry_type *do_retry,
- char *retry_name,
+ string_t retry_name,
mach_port_t *ret,
mach_msg_type_name_t *rettype)
{