From f813fdce38067eaf13272be413f50d420d57d58f Mon Sep 17 00:00:00 2001 From: Mark Bainter Date: Sun, 19 Apr 2015 23:06:02 +0000 Subject: Remove char_u: add_pathsep() --- src/nvim/ex_cmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/ex_cmds.c') diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 78200e4689..830636fb66 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -5126,7 +5126,7 @@ void fix_help_buffer(void) char_u *cp; /* Find all "doc/ *.txt" files in this directory. */ - add_pathsep(NameBuff); + add_pathsep((char *)NameBuff); STRCAT(NameBuff, "doc/*.??[tx]"); // Note: We cannot just do `&NameBuff` because it is a statically sized array @@ -5297,7 +5297,7 @@ void ex_helptags(exarg_T *eap) /* Get a list of all files in the help directory and in subdirectories. */ STRCPY(NameBuff, dirname); - add_pathsep(NameBuff); + add_pathsep((char *)NameBuff); STRCAT(NameBuff, "**"); // Note: We cannot just do `&NameBuff` because it is a statically sized array @@ -5419,7 +5419,7 @@ helptags_one ( * Do this before scanning through all the files. */ STRCPY(NameBuff, dir); - add_pathsep(NameBuff); + add_pathsep((char *)NameBuff); STRCAT(NameBuff, tagfname); fd_tags = mch_fopen((char *)NameBuff, "w"); if (fd_tags == NULL) { -- cgit From 1f768572323f8d1c1c802ff1e00f696ce1ffbe88 Mon Sep 17 00:00:00 2001 From: Mark Bainter Date: Mon, 20 Apr 2015 11:33:52 +0000 Subject: Remove char_u: modname() --- src/nvim/ex_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/ex_cmds.c') diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 830636fb66..bc2485afc6 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1530,7 +1530,7 @@ void write_viminfo(char_u *file, int forceit) #endif // Make tempname - tempname = modname(fname, (char_u *)".tmp", FALSE); + tempname = (char_u *)modname((char *)fname, ".tmp", FALSE); if (tempname != NULL) { /* * Check if tempfile already exists. Never overwrite an -- cgit From 7774b97d5773a98996ff5d30007570c181546cb1 Mon Sep 17 00:00:00 2001 From: Mark Bainter Date: Mon, 20 Apr 2015 15:05:21 +0000 Subject: Remove char_u: fix_fname() --- src/nvim/ex_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/ex_cmds.c') diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index bc2485afc6..62c2d4ac98 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -2080,7 +2080,7 @@ int do_write(exarg_T *eap) other = FALSE; } else { fname = ffname; - free_fname = fix_fname(ffname); + free_fname = (char_u *)fix_fname((char *)ffname); /* * When out-of-memory, keep unexpanded file name, because we MUST be * able to write the file in this situation. @@ -2579,7 +2579,7 @@ do_ecmd ( ffname = curbuf->b_ffname; sfname = curbuf->b_fname; } - free_fname = fix_fname(ffname); /* may expand to full path name */ + free_fname = (char_u *)fix_fname((char *)ffname); /* may expand to full path name */ if (free_fname != NULL) ffname = free_fname; other_file = otherfile(ffname); -- cgit