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/if_cscope.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/if_cscope.c')
-rw-r--r-- | src/nvim/if_cscope.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index e8bf528f4e..1a4bd2ec47 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -416,16 +416,15 @@ static int cs_add_common(char *arg1, char *arg2, char *flags) char *fname2 = NULL; char *ppath = NULL; size_t usedlen = 0; - char_u *fbuf = NULL; + char *fbuf = NULL; // get the filename (arg1), expand it, and try to stat it fname = xmalloc(MAXPATHL + 1); expand_env((char_u *)arg1, (char_u *)fname, MAXPATHL); size_t len = STRLEN(fname); - fbuf = (char_u *)fname; - (void)modify_fname(":p", false, &usedlen, - &fname, (char **)&fbuf, &len); + fbuf = fname; + (void)modify_fname(":p", false, &usedlen, &fname, &fbuf, &len); if (fname == NULL) { goto add_err; } |