aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/if_cscope.c
diff options
context:
space:
mode:
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;
}