diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-10-04 15:40:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 06:40:43 -0700 |
commit | 44f7b46199aebedb0ff7f8ce782b375a0e156b27 (patch) | |
tree | ffc0b6403ce358bda871d07b10b690da8e597966 /src/nvim/undo.c | |
parent | b4c54ffa2216f46f9f0c456c7c53d3f6a66dad15 (diff) | |
download | rneovim-44f7b46199aebedb0ff7f8ce782b375a0e156b27.tar.gz rneovim-44f7b46199aebedb0ff7f8ce782b375a0e156b27.tar.bz2 rneovim-44f7b46199aebedb0ff7f8ce782b375a0e156b27.zip |
refactor: remove redundant char casts #15888
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index af214815f8..d5857ff8b9 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -1407,7 +1407,7 @@ void u_read_undo(char *name, const char_u *hash, const char_u *orig_name FUNC_AT FileInfo file_info_orig; FileInfo file_info_undo; if (os_fileinfo((const char *)orig_name, &file_info_orig) - && os_fileinfo((char *)file_name, &file_info_undo) + && os_fileinfo(file_name, &file_info_undo) && file_info_orig.stat.st_uid != file_info_undo.stat.st_uid && file_info_undo.stat.st_uid != getuid()) { if (p_verbose > 0) { @@ -1420,7 +1420,7 @@ void u_read_undo(char *name, const char_u *hash, const char_u *orig_name FUNC_AT } #endif } else { - file_name = (char *)name; + file_name = name; } if (p_verbose > 0) { |