mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
refactor: remove redundant const char * casts
(cherry picked from commit 1afb4a2963
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
060fa561f7
commit
2399f4a539
@@ -268,7 +268,7 @@ int open_buffer(int read_stdin, exarg_T *eap, int flags_arg)
|
||||
int save_bin = curbuf->b_p_bin;
|
||||
int perm;
|
||||
|
||||
perm = os_getperm((const char *)curbuf->b_ffname);
|
||||
perm = os_getperm(curbuf->b_ffname);
|
||||
if (perm >= 0 && (0 || S_ISFIFO(perm)
|
||||
|| S_ISSOCK(perm)
|
||||
# ifdef OPEN_CHR_FILES
|
||||
@@ -3309,8 +3309,7 @@ void maketitle(void)
|
||||
SPACE_FOR_FNAME + 1);
|
||||
buf_p += MIN(size, SPACE_FOR_FNAME);
|
||||
} else {
|
||||
buf_p += transstr_buf((const char *)path_tail(curbuf->b_fname),
|
||||
-1, buf_p, SPACE_FOR_FNAME + 1, true);
|
||||
buf_p += transstr_buf(path_tail(curbuf->b_fname), -1, buf_p, SPACE_FOR_FNAME + 1, true);
|
||||
}
|
||||
|
||||
switch (bufIsChanged(curbuf)
|
||||
@@ -3557,7 +3556,7 @@ void fname_expand(buf_T *buf, char **ffname, char **sfname)
|
||||
#ifdef MSWIN
|
||||
if (!buf->b_p_bin) {
|
||||
// If the file name is a shortcut file, use the file it links to.
|
||||
char *rfname = os_resolve_shortcut((const char *)(*ffname));
|
||||
char *rfname = os_resolve_shortcut(*ffname);
|
||||
if (rfname != NULL) {
|
||||
xfree(*ffname);
|
||||
*ffname = rfname;
|
||||
|
Reference in New Issue
Block a user