mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
refactor: remove redundant const char * casts
This commit is contained in:
@@ -1179,7 +1179,7 @@ void u_write_undo(const char *const name, const bool forceit, buf_T *const buf,
|
||||
// allow the user to access the undo file.
|
||||
int perm = 0600;
|
||||
if (buf->b_ffname != NULL) {
|
||||
perm = os_getperm((const char *)buf->b_ffname);
|
||||
perm = os_getperm(buf->b_ffname);
|
||||
if (perm < 0) {
|
||||
perm = 0600;
|
||||
}
|
||||
|
Reference in New Issue
Block a user