mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Make fname const in path_get_absolute_path()
Also a minor change to remove an unneeded cast
This commit is contained in:
parent
a2273164b6
commit
4ccf2740c8
@ -2052,7 +2052,7 @@ int append_path(char *path, const char *to_append, int max_len)
|
||||
/// @param len Length of `buf`.
|
||||
/// @param force Also expand when `fname` is already absolute.
|
||||
/// @return `FAIL` for failure, `OK` for success.
|
||||
static int path_get_absolute_path(char_u *fname, char_u *buf, int len, int force)
|
||||
static int path_get_absolute_path(const char_u *fname, char_u *buf, int len, int force)
|
||||
{
|
||||
char_u *p;
|
||||
*buf = NUL;
|
||||
@ -2075,7 +2075,7 @@ static int path_get_absolute_path(char_u *fname, char_u *buf, int len, int force
|
||||
return FAIL;
|
||||
}
|
||||
}
|
||||
return append_path((char *) buf, (char *) end_of_path, len);
|
||||
return append_path((char *)buf, end_of_path, len);
|
||||
}
|
||||
|
||||
/// Check if the given file is absolute.
|
||||
|
Loading…
Reference in New Issue
Block a user