aboutsummaryrefslogtreecommitdiff
path: root/eth-multiplexer/netfs_impl.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 /eth-multiplexer/netfs_impl.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 'eth-multiplexer/netfs_impl.c')
-rw-r--r--eth-multiplexer/netfs_impl.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/eth-multiplexer/netfs_impl.c b/eth-multiplexer/netfs_impl.c
index 040512a0..1573d6f3 100644
--- a/eth-multiplexer/netfs_impl.c
+++ b/eth-multiplexer/netfs_impl.c
@@ -81,7 +81,7 @@ new_node (struct lnode *ln, struct node **np)
}
struct node *
-lookup (char *name)
+lookup (const char *name)
{
struct lnode *ln = (struct lnode *) lookup_dev_by_name (name);
@@ -107,7 +107,7 @@ lookup (char *name)
locked on success; no matter what, unlock DIR before returning. */
error_t
netfs_attempt_create_file (struct iouser *user, struct node *dir,
- char *name, mode_t mode, struct node **node)
+ const char *name, mode_t mode, struct node **node)
{
debug("");
*node = 0;
@@ -279,7 +279,7 @@ netfs_get_dirents (struct iouser *cred, struct node *dir,
(*NODE, if found, should be locked, this call should unlock DIR no matter
what.) */
error_t netfs_attempt_lookup (struct iouser *user, struct node *dir,
- char *name, struct node **node)
+ const char *name, struct node **node)
{
error_t err = 0;
@@ -312,7 +312,7 @@ error_t netfs_attempt_lookup (struct iouser *user, struct node *dir,
/* Delete NAME in DIR for USER. */
error_t netfs_attempt_unlink (struct iouser *user, struct node *dir,
- char *name)
+ const char *name)
{
debug("");
return EOPNOTSUPP;
@@ -320,8 +320,8 @@ error_t netfs_attempt_unlink (struct iouser *user, struct node *dir,
/* 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)
{
debug("");
return EOPNOTSUPP;
@@ -330,7 +330,7 @@ error_t netfs_attempt_rename (struct iouser *user, struct node *fromdir,
/* Attempt to create a new directory named NAME in DIR for USER with mode
MODE. */
error_t netfs_attempt_mkdir (struct iouser *user, struct node *dir,
- char *name, mode_t mode)
+ const char *name, mode_t mode)
{
debug("");
return EOPNOTSUPP;
@@ -338,7 +338,7 @@ error_t netfs_attempt_mkdir (struct iouser *user, struct node *dir,
/* Attempt to remove directory named NAME in DIR for USER. */
error_t netfs_attempt_rmdir (struct iouser *user,
- struct node *dir, char *name)
+ struct node *dir, const char *name)
{
debug("");
return EOPNOTSUPP;
@@ -387,7 +387,7 @@ error_t netfs_attempt_chmod (struct iouser *cred, struct node *node,
/* 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)
+ const char *name)
{
debug("");
return EOPNOTSUPP;
@@ -405,7 +405,7 @@ error_t netfs_attempt_mkdev (struct iouser *cred, struct node *node,
/* Attempt to set the passive translator record for FILE to ARGZ (of length
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)
{
debug("");
return EOPNOTSUPP;
@@ -450,7 +450,7 @@ error_t netfs_attempt_syncfs (struct iouser *cred, int wait)
DIR nor FILE are locked. If EXCL is set, do not delete the target, but
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)
{
debug("");
return EOPNOTSUPP;
@@ -488,7 +488,7 @@ error_t netfs_attempt_read (struct iouser *cred, struct node *node,
to *LEN bytes from DATA. Set *LEN to the amount seccessfully written upon
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)
{
debug("");
return EOPNOTSUPP;