summaryrefslogtreecommitdiff
path: root/ftpfs/netfs.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 /ftpfs/netfs.c
parentdd3048b2e483f66571cfa1b2ccebb2091b9ad990 (diff)
Fix const warnings
Now that the RPCs have const, this forces us cleaning our const-meant functions.
Diffstat (limited to 'ftpfs/netfs.c')
-rw-r--r--ftpfs/netfs.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/ftpfs/netfs.c b/ftpfs/netfs.c
index b0c80db1..fb48cbda 100644
--- a/ftpfs/netfs.c
+++ b/ftpfs/netfs.c
@@ -38,7 +38,7 @@
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)
{
*node = 0;
pthread_mutex_unlock (&dir->lock);
@@ -271,7 +271,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 = ftpfs_refresh_node (dir);
if (! err)
@@ -281,15 +281,15 @@ 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)
{
return EROFS;
}
/* 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 EROFS;
}
@@ -297,14 +297,14 @@ 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)
{
return EROFS;
}
/* 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)
{
return EROFS;
}
@@ -338,7 +338,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)
{
return EROFS;
}
@@ -354,7 +354,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)
{
return EROFS;
}
@@ -398,7 +398,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)
{
return EROFS;
}
@@ -453,7 +453,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)
{
return EROFS;
}