mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
refactor: remove redundant char casts #15888
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user