aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
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;