aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/if_cscope.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-07-31 16:20:57 +0200
committerdundargoc <gocundar@gmail.com>2022-08-12 14:22:02 +0200
commit094cdf2d691bc005dadb5a22bb83b85f3b6dff49 (patch)
treef09ca6baf124ceaeaef27c095fee1e30ecb772b0 /src/nvim/if_cscope.c
parentf79773a3b4b3ce5a3b37652a72b12089880f32a4 (diff)
downloadrneovim-094cdf2d691bc005dadb5a22bb83b85f3b6dff49.tar.gz
rneovim-094cdf2d691bc005dadb5a22bb83b85f3b6dff49.tar.bz2
rneovim-094cdf2d691bc005dadb5a22bb83b85f3b6dff49.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/if_cscope.c')
-rw-r--r--src/nvim/if_cscope.c7
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;
}