mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 10:18:18 +00:00
refactor: remove some casts to char * (#24200)
This commit is contained in:
@@ -1810,7 +1810,7 @@ bool path_with_extension(const char *path, const char *extension)
|
||||
}
|
||||
|
||||
/// Return true if "name" is a full (absolute) path name or URL.
|
||||
bool vim_isAbsName(char *name)
|
||||
bool vim_isAbsName(const char *name)
|
||||
{
|
||||
return path_with_url(name) != 0 || path_is_absolute(name);
|
||||
}
|
||||
@@ -1871,7 +1871,7 @@ char *fix_fname(const char *fname)
|
||||
#ifdef UNIX
|
||||
return FullName_save(fname, true);
|
||||
#else
|
||||
if (!vim_isAbsName((char *)fname)
|
||||
if (!vim_isAbsName(fname)
|
||||
|| strstr(fname, "..") != NULL
|
||||
|| strstr(fname, "//") != NULL
|
||||
# ifdef BACKSLASH_IN_FILENAME
|
||||
|
Reference in New Issue
Block a user