mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00
eval: Move remaining get_tv_string* functions to eval/typval.c
This commit is contained in:
@@ -622,11 +622,11 @@ int32_t os_getperm(const char *name)
|
||||
/// Set the permission of a file.
|
||||
///
|
||||
/// @return `OK` for success, `FAIL` for failure.
|
||||
int os_setperm(const char_u *name, int perm)
|
||||
int os_setperm(const char *const name, int perm)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
int r;
|
||||
RUN_UV_FS_FUNC(r, uv_fs_chmod, (const char *)name, perm, NULL);
|
||||
RUN_UV_FS_FUNC(r, uv_fs_chmod, name, perm, NULL);
|
||||
return (r == kLibuvSuccess ? OK : FAIL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user