diff --git a/fs/nfs/nfs_adapter.c b/fs/nfs/nfs_adapter.c index 3ccb84795abfd8a3eed8e51b860a121c8b2cc633..42173219598db769ac8ec411a0a9ce5ea8883c0b 100644 --- a/fs/nfs/nfs_adapter.c +++ b/fs/nfs/nfs_adapter.c @@ -2158,7 +2158,7 @@ errout_with_mutex: return -error; } -int vfs_nfs_unlink(struct Vnode *parent, struct Vnode *target, char *filename) +int vfs_nfs_unlink(struct Vnode *parent, struct Vnode *target, const char *filename) { struct nfsmount *nmp = (struct nfsmount *)(parent->originMount->data); struct nfsnode *parent_node = NULL; @@ -2222,7 +2222,7 @@ errout_with_mutex: return -error; } -int vfs_nfs_rmdir(struct Vnode *parent, struct Vnode *target, char *dirname) +int vfs_nfs_rmdir(struct Vnode *parent, struct Vnode *target, const char *dirname) { struct nfsmount *nmp = (struct nfsmount *)(parent->originMount->data); struct nfsnode *parent_node = NULL; diff --git a/fs/tmpfs/fs_tmpfs.c b/fs/tmpfs/fs_tmpfs.c index a6c7e95a5893f00458a87e98a85ffd450c322922..daa2dc964c31df7239e18e77810f9ab8c2da8bec 100755 --- a/fs/tmpfs/fs_tmpfs.c +++ b/fs/tmpfs/fs_tmpfs.c @@ -140,8 +140,8 @@ int tmpfs_readdir(struct Vnode *vp, struct fs_dirent_s *dir); int tmpfs_rename(struct Vnode *oldVnode, struct Vnode *newParent, const char *oldname, const char *newname); int tmpfs_mkdir(struct Vnode *parent, const char *relpath, mode_t mode, struct Vnode **vpp); int tmpfs_create(struct Vnode *dvp, const char *path, int mode, struct Vnode **vpp); -int tmpfs_unlink(struct Vnode *parent, struct Vnode *node, char *relpath); -int tmpfs_rmdir(struct Vnode *parent, struct Vnode *target, char *dirname); +int tmpfs_unlink(struct Vnode *parent, struct Vnode *node, const char *relpath); +int tmpfs_rmdir(struct Vnode *parent, struct Vnode *target, const char *dirname); int tmpfs_reclaim(struct Vnode *vp); int tmpfs_statfs(struct Mount *mp, struct statfs *sbp); @@ -1854,7 +1854,7 @@ int tmpfs_statfs(struct Mount *mp, struct statfs *sbp) * Name: tmpfs_unlink ****************************************************************************/ -int tmpfs_unlink(struct Vnode *parent, struct Vnode *node, char *relpath) +int tmpfs_unlink(struct Vnode *parent, struct Vnode *node, const char *relpath) { FAR struct tmpfs_s *fs; FAR struct tmpfs_directory_s *parent_dir; @@ -2041,7 +2041,7 @@ errout_with_lock: * Name: tmpfs_rmdir ****************************************************************************/ -int tmpfs_rmdir(struct Vnode *parent, struct Vnode *target, char *dirname) +int tmpfs_rmdir(struct Vnode *parent, struct Vnode *target, const char *dirname) { FAR struct tmpfs_s *fs; FAR struct tmpfs_directory_s *parent_dir;