aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Bainter <mbainter+github@gmail.com>2015-05-07 21:57:04 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-05-13 19:42:31 -0400
commit7747bf64d8d638b036b5ea39681f29967d98f777 (patch)
tree6eb7f5c44aa71dec4bdf4f577db9936433b36117 /src
parentde7332c0f58d822863e9f8bb8db0ea3e061a54bf (diff)
downloadrneovim-7747bf64d8d638b036b5ea39681f29967d98f777.tar.gz
rneovim-7747bf64d8d638b036b5ea39681f29967d98f777.tar.bz2
rneovim-7747bf64d8d638b036b5ea39681f29967d98f777.zip
minor cleanup. #2610
Update vim_isAbsName() to use bool type cleanup casts in vim_findfile() and recover_names() References #2470
Diffstat (limited to 'src')
-rw-r--r--src/nvim/file_search.c2
-rw-r--r--src/nvim/memline.c2
-rw-r--r--src/nvim/path.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c
index 39a5ec062b..fbff7d2417 100644
--- a/src/nvim/file_search.c
+++ b/src/nvim/file_search.c
@@ -750,7 +750,7 @@ char_u *vim_findfile(void *search_ctx_arg)
* If the path is a URL don't try this.
*/
if (path_with_url((char *)dirptrs[0])) {
- stackp->ffs_filearray = (char_u **)xmalloc(sizeof(char *));
+ stackp->ffs_filearray = xmalloc(sizeof(char *));
stackp->ffs_filearray[0] = vim_strsave(dirptrs[0]);
stackp->ffs_filearray_size = 1;
} else
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index d654749acd..62d1944c46 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -1367,7 +1367,7 @@ recover_names (
char_u *swapname = (char_u *)modname((char *)fname_res, ".swp", TRUE);
if (swapname != NULL) {
if (os_file_exists(swapname)) {
- files = (char_u **)xmalloc(sizeof(char_u *));
+ files = xmalloc(sizeof(char_u *));
files[0] = swapname;
swapname = NULL;
num_files = 1;
diff --git a/src/nvim/path.c b/src/nvim/path.c
index 8dad76dd71..152154e5f4 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -1550,7 +1550,7 @@ int path_with_url(const char *fname)
/*
* Return TRUE if "name" is a full (absolute) path name or URL.
*/
-int vim_isAbsName(char_u *name)
+bool vim_isAbsName(char_u *name)
{
return path_with_url((char *)name) != 0 || path_is_absolute_path(name);
}