aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs
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 /libdiskfs
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 'libdiskfs')
-rw-r--r--libdiskfs/dir-lookup.c2
-rw-r--r--libdiskfs/file-set-trans.c2
-rw-r--r--libdiskfs/io-write.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c
index 55439b08..b39868ae 100644
--- a/libdiskfs/dir-lookup.c
+++ b/libdiskfs/dir-lookup.c
@@ -76,7 +76,7 @@ diskfs_S_dir_lookup (struct protid *dircred,
/* Keep a pointer to the start of the filename for length
calculations. */
- char *filename_start = filename;
+ const char *filename_start = filename;
*retry_port_type = MACH_MSG_TYPE_MAKE_SEND;
*do_retry = FS_RETRY_NORMAL;
diff --git a/libdiskfs/file-set-trans.c b/libdiskfs/file-set-trans.c
index b55967f9..36f0c3b8 100644
--- a/libdiskfs/file-set-trans.c
+++ b/libdiskfs/file-set-trans.c
@@ -198,7 +198,7 @@ diskfs_S_file_set_translator (struct protid *cred,
if (!diskfs_create_symlink_hook || err == EINVAL)
/* Store the argument in the file as the
target of the link */
- err = diskfs_node_rdwr (np, arg, 0, strlen (arg),
+ err = diskfs_node_rdwr (np, (char*) arg, 0, strlen (arg),
1, cred, 0);
if (err)
{
diff --git a/libdiskfs/io-write.c b/libdiskfs/io-write.c
index fa451d8b..154bc887 100644
--- a/libdiskfs/io-write.c
+++ b/libdiskfs/io-write.c
@@ -76,7 +76,7 @@ diskfs_S_io_write (struct protid *cred,
}
*amt = datalen;
- err = _diskfs_rdwr_internal (np, data, off, amt, 1, 0);
+ err = _diskfs_rdwr_internal (np, (char*) data, off, amt, 1, 0);
if (!err && offset == -1)
cred->po->filepointer += *amt;