From: John Hodge Date: Sat, 2 Jul 2011 04:37:09 +0000 (+0800) Subject: Kernel - Fixed up a lack of const-ness X-Git-Tag: rel0.10~57 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=425494c449d668bf4728eef3a45f890432fd9999;p=tpg%2Facess2.git Kernel - Fixed up a lack of const-ness --- 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;