aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/shell.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-09 10:29:51 +0200
committerGitHub <noreply@github.com>2022-05-09 10:29:51 +0200
commitdfeb5b47bcde7984b2b1820f0268d0d5d736f98d (patch)
tree87e129c92affece6421d4585b5d5c20996891ec5 /src/nvim/os/shell.c
parentdbdd58e548fcf55848359b696275fd848756db7b (diff)
parente31b32a293f6ba8708499a176234f8be1df6a145 (diff)
downloadrneovim-dfeb5b47bcde7984b2b1820f0268d0d5d736f98d.tar.gz
rneovim-dfeb5b47bcde7984b2b1820f0268d0d5d736f98d.tar.bz2
rneovim-dfeb5b47bcde7984b2b1820f0268d0d5d736f98d.zip
Merge pull request #18466 from dundargoc/refactor/remove-char_u
refactor: replace char_u variables and functions with char
Diffstat (limited to 'src/nvim/os/shell.c')
-rw-r--r--src/nvim/os/shell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c
index 2c1e492dbe..0d86dcb480 100644
--- a/src/nvim/os/shell.c
+++ b/src/nvim/os/shell.c
@@ -405,7 +405,7 @@ int os_expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u ***file
while (*p != ' ' && *p != '\n') {
p++;
}
- p = skipwhite(p); // skip to next entry
+ p = (char_u *)skipwhite((char *)p); // skip to next entry
}
// file names are separated with NL
} else if (shell_style == STYLE_BT || shell_style == STYLE_VIMGLOB) {
@@ -418,7 +418,7 @@ int os_expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u ***file
if (*p != NUL) {
p++;
}
- p = skipwhite(p); // skip leading white space
+ p = (char_u *)skipwhite((char *)p); // skip leading white space
}
// file names are separated with NUL
} else {
@@ -483,7 +483,7 @@ int os_expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u ***file
*p = NUL;
} else {
*p++ = NUL;
- p = skipwhite(p); // skip to next entry
+ p = (char_u *)skipwhite((char *)p); // skip to next entry
}
} else { // NUL separates
while (*p && p < buffer + len) { // skip entry
@@ -1158,7 +1158,7 @@ static size_t tokenize(const char_u *const str, char **const argv)
}
argc++;
- p = (const char *)skipwhite((char_u *)(p + len));
+ p = (const char *)skipwhite((p + len));
}
return argc;