aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-07-21 16:44:15 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-07-21 20:51:37 +0200
commit1fde79eedf0091af1b04ce3d91045672cb3c233e (patch)
tree365f8c6e17b593e5350bdd927ecf237363724de4 /src/nvim/path.c
parentb08dc3ec195feb4ab69c898ab816c104d2aa1aa1 (diff)
downloadrneovim-1fde79eedf0091af1b04ce3d91045672cb3c233e.tar.gz
rneovim-1fde79eedf0091af1b04ce3d91045672cb3c233e.tar.bz2
rneovim-1fde79eedf0091af1b04ce3d91045672cb3c233e.zip
os_can_exe: remove char_u
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r--src/nvim/path.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c
index b43a172991..75a26d88c1 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -453,13 +453,13 @@ char *FullName_save(const char *fname, bool force)
/// Saves the absolute path.
/// @param name An absolute or relative path.
/// @return The absolute path of `name`.
-char_u *save_abs_path(const char_u *name)
+char *save_abs_path(const char *name)
FUNC_ATTR_MALLOC FUNC_ATTR_NONNULL_ALL
{
- if (!path_is_absolute(name)) {
- return (char_u *)FullName_save((char *)name, true);
+ if (!path_is_absolute((char_u *)name)) {
+ return FullName_save(name, true);
}
- return vim_strsave((char_u *) name);
+ return (char *)vim_strsave((char_u *)name);
}
/// Checks if a path has a wildcard character including '~', unless at the end.
@@ -1401,7 +1401,7 @@ void addfile(
// If the file isn't executable, may not add it. Do accept directories.
// When invoked from expand_shellcmd() do not use $PATH.
if (!isdir && (flags & EW_EXEC)
- && !os_can_exe(f, NULL, !(flags & EW_SHELLCMD))) {
+ && !os_can_exe((char *)f, NULL, !(flags & EW_SHELLCMD))) {
return;
}
@@ -2306,7 +2306,7 @@ void path_guess_exepath(const char *argv0, char *buf, size_t bufsize)
xstrlcpy((char *)NameBuff, dir, dir_len + 1);
xstrlcat((char *)NameBuff, PATHSEPSTR, sizeof(NameBuff));
xstrlcat((char *)NameBuff, argv0, sizeof(NameBuff));
- if (os_can_exe(NameBuff, NULL, false)) {
+ if (os_can_exe((char *)NameBuff, NULL, false)) {
xstrlcpy(buf, (char *)NameBuff, bufsize);
return;
}