aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/env.c
diff options
context:
space:
mode:
authorMark Bainter <mbainter+github@gmail.com>2015-04-12 20:36:34 +0000
committerMark Bainter <mbainter+github@gmail.com>2015-04-17 14:46:58 +0000
commit9a5e87ac83d2a0f88c183e13695910e950fd457b (patch)
tree4f472314f96782c0aac8ba7282f4a84eb155d3b9 /src/nvim/os/env.c
parentc1a3d289d69b93092247e0eca3bf4b43992791a1 (diff)
downloadrneovim-9a5e87ac83d2a0f88c183e13695910e950fd457b.tar.gz
rneovim-9a5e87ac83d2a0f88c183e13695910e950fd457b.tar.bz2
rneovim-9a5e87ac83d2a0f88c183e13695910e950fd457b.zip
Remove char_u: after_pathstep()
See: #459
Diffstat (limited to 'src/nvim/os/env.c')
-rw-r--r--src/nvim/os/env.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c
index be4b22de3a..0dd5d62ce9 100644
--- a/src/nvim/os/env.c
+++ b/src/nvim/os/env.c
@@ -343,7 +343,7 @@ void expand_env_esc(char_u *srcp, char_u *dst, int dstlen, bool esc, bool one,
c = (int)STRLEN(var);
/* if var[] ends in a path separator and tail[] starts
* with it, skip a character */
- if (*var != NUL && after_pathsep(dst, dst + c)
+ if (*var != NUL && after_pathsep((char *)dst, (char *)dst + c)
#if defined(BACKSLASH_IN_FILENAME)
&& dst[-1] != ':'
#endif
@@ -410,7 +410,7 @@ static char *remove_tail(char *p, char *pend, char *name)
if (newend >= p
&& fnamencmp((char_u *)newend, (char_u *)name, len - 1) == 0
- && (newend == p || after_pathsep((char_u *)p, (char_u *)newend)))
+ && (newend == p || after_pathsep(p, newend)))
return newend;
return pend;
}
@@ -488,7 +488,7 @@ char_u *vim_getenv(char_u *name, bool *mustfree)
}
/* remove trailing path separator */
- if (pend > p && after_pathsep(p, pend))
+ if (pend > p && after_pathsep((char *)p, (char *)pend))
--pend;
// check that the result is a directory name