From 425494c449d668bf4728eef3a45f890432fd9999 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 2 Jul 2011 12:37:09 +0800 Subject: [PATCH] Kernel - Fixed up a lack of const-ness --- Kernel/include/vfs_ext.h | 4 ++-- Kernel/vfs/open.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Kernel/include/vfs_ext.h b/Kernel/include/vfs_ext.h index 5e6b77dd..ec3e0f65 100644 --- a/Kernel/include/vfs_ext.h +++ b/Kernel/include/vfs_ext.h @@ -167,14 +167,14 @@ extern int VFS_GetACL(int FD, tVFS_ACL *Dest); * \param Dest New working directory (either absolute or relative to the current) * \return Boolean Success */ -extern int VFS_ChDir(char *Dest); +extern int VFS_ChDir(const char *Dest); /** * \brief Change the current virtual root for the user * \param New New virtual root (same as ::VFS_ChDir but cannot go * above the current virtual root) * \return Boolean success */ -extern int VFS_ChRoot(char *New); +extern int VFS_ChRoot(const char *New); /** * \brief Change the location of the current file pointer diff --git a/Kernel/vfs/open.c b/Kernel/vfs/open.c index 600cedc6..5d1d9fa7 100644 --- a/Kernel/vfs/open.c +++ b/Kernel/vfs/open.c @@ -611,7 +611,7 @@ void VFS_Close(int FD) /** * \brief Change current working directory */ -int VFS_ChDir(char *Dest) +int VFS_ChDir(const char *Dest) { char *buf; int fd; @@ -657,7 +657,7 @@ int VFS_ChDir(char *Dest) * \fn int VFS_ChRoot(char *New) * \brief Change current root directory */ -int VFS_ChRoot(char *New) +int VFS_ChRoot(const char *New) { char *buf; int fd; -- 2.20.1