diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-12 14:44:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 14:44:28 +0200 |
commit | 54a165d9a644e822207f02bdd4cf1b810d2788e3 (patch) | |
tree | f09ca6baf124ceaeaef27c095fee1e30ecb772b0 /src/nvim/strings.c | |
parent | f79773a3b4b3ce5a3b37652a72b12089880f32a4 (diff) | |
parent | 094cdf2d691bc005dadb5a22bb83b85f3b6dff49 (diff) | |
download | rneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.tar.gz rneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.tar.bz2 rneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.zip |
Merge pull request #19592 from dundargoc/refactor/char_u-to-char
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r-- | src/nvim/strings.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index 22effaade0..dbd413c2d5 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -191,7 +191,7 @@ char *vim_strnsave_unquoted(const char *const string, const size_t length) char_u *vim_strsave_shellescape(const char_u *string, bool do_special, bool do_newline) FUNC_ATTR_NONNULL_RET FUNC_ATTR_MALLOC FUNC_ATTR_NONNULL_ALL { - char_u *d; + char *d; char_u *escaped_string; size_t l; int csh_like; @@ -238,7 +238,7 @@ char_u *vim_strsave_shellescape(const char_u *string, bool do_special, bool do_n // Allocate memory for the result and fill it. escaped_string = xmalloc(length); - d = escaped_string; + d = (char *)escaped_string; // add opening quote #ifdef WIN32 @@ -248,7 +248,7 @@ char_u *vim_strsave_shellescape(const char_u *string, bool do_special, bool do_n #endif *d++ = '\''; - for (const char_u *p = string; *p != NUL;) { + for (const char *p = (char *)string; *p != NUL;) { #ifdef WIN32 if (!p_ssl) { if (*p == '"') { @@ -276,7 +276,7 @@ char_u *vim_strsave_shellescape(const char_u *string, bool do_special, bool do_n *d++ = *p++; continue; } - if (do_special && find_cmdline_var(p, &l) >= 0) { + if (do_special && find_cmdline_var((char_u *)p, &l) >= 0) { *d++ = '\\'; // insert backslash while (--l != SIZE_MAX) { // copy the var *d++ = *p++; |