aboutsummaryrefslogtreecommitdiff
path: root/usermux/stubs.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-17 00:32:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-17 00:43:09 +0100
commitf5fb7c713ea443469406a691e60a6f4567a4cb75 (patch)
treeb16d979915b5ad7e32ffe77ca5f5006dc639a16e /usermux/stubs.c
parentdd3048b2e483f66571cfa1b2ccebb2091b9ad990 (diff)
downloadhurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.gz
hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.bz2
hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.zip
Fix const warnings
Now that the RPCs have const, this forces us cleaning our const-meant functions.
Diffstat (limited to 'usermux/stubs.c')
-rw-r--r--usermux/stubs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/usermux/stubs.c b/usermux/stubs.c
index b1992b02..9943f379 100644
--- a/usermux/stubs.c
+++ b/usermux/stubs.c
@@ -22,7 +22,7 @@
/* Attempt to turn NODE (user CRED) into a symlink with target NAME. */
error_t
-netfs_attempt_mksymlink (struct iouser *cred, struct node *node, char *name)
+netfs_attempt_mksymlink (struct iouser *cred, struct node *node, const char *name)
{
return EOPNOTSUPP;
}
@@ -40,7 +40,7 @@ netfs_attempt_mkdev (struct iouser *cred, struct node *node,
ARGZLEN) for user CRED. */
error_t
netfs_set_translator (struct iouser *cred, struct node *node,
- char *argz, size_t argzlen)
+ const char *argz, size_t argzlen)
{
return EOPNOTSUPP;
}
@@ -72,7 +72,7 @@ netfs_attempt_statfs (struct iouser *cred, struct node *node,
/* Delete NAME in DIR for USER. */
error_t
-netfs_attempt_unlink (struct iouser *user, struct node *dir, char *name)
+netfs_attempt_unlink (struct iouser *user, struct node *dir, const char *name)
{
return EOPNOTSUPP;
}
@@ -80,8 +80,8 @@ netfs_attempt_unlink (struct iouser *user, struct node *dir, char *name)
/* Note that in this one call, neither of the specific nodes are locked. */
error_t
netfs_attempt_rename (struct iouser *user, struct node *fromdir,
- char *fromname, struct node *todir,
- char *toname, int excl)
+ const char *fromname, struct node *todir,
+ const char *toname, int excl)
{
return EOPNOTSUPP;
}
@@ -90,15 +90,15 @@ netfs_attempt_rename (struct iouser *user, struct node *fromdir,
MODE. */
error_t
netfs_attempt_mkdir (struct iouser *user, struct node *dir,
- char *name, mode_t mode)
+ const char *name, mode_t mode)
{
return EOPNOTSUPP;
}
/* Attempt to remove directory named NAME in DIR for USER. */
error_t
-netfs_attempt_rmdir (struct iouser *user,
- struct node *dir, char *name)
+netfs_attempt_rmdir (struct iouser *user,
+ struct node *dir, const char *name)
{
return EOPNOTSUPP;
}
@@ -108,7 +108,7 @@ netfs_attempt_rmdir (struct iouser *user,
return EEXIST if NAME is already found in DIR. */
error_t
netfs_attempt_link (struct iouser *user, struct node *dir,
- struct node *file, char *name, int excl)
+ struct node *file, const char *name, int excl)
{
return EOPNOTSUPP;
}
@@ -137,7 +137,7 @@ netfs_attempt_read (struct iouser *cred, struct node *node,
return. */
error_t
netfs_attempt_write (struct iouser *cred, struct node *node,
- off_t offset, size_t *len, void *data)
+ off_t offset, size_t *len, const void *data)
{
return EOPNOTSUPP;
}