aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJurica Bradaric <jbradaric@gmail.com>2016-02-28 13:12:12 +0100
committerJurica Bradaric <jbradaric@gmail.com>2016-04-20 08:25:51 +0200
commita252fca38e0e5bf8501b72c2a9cfd2acf1cf9fff (patch)
treecd916ec8b7395a6d08d82098eb5813afce6d2dd0 /src
parent9e385404b3443f201f1092ba76bcdafd1f303976 (diff)
downloadrneovim-a252fca38e0e5bf8501b72c2a9cfd2acf1cf9fff.tar.gz
rneovim-a252fca38e0e5bf8501b72c2a9cfd2acf1cf9fff.tar.bz2
rneovim-a252fca38e0e5bf8501b72c2a9cfd2acf1cf9fff.zip
Fix linter errors.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/path.c6
-rw-r--r--src/nvim/tempfile.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c
index 8ba3fe3358..4b15afbfc1 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -605,7 +605,7 @@ static size_t do_path_expand(garray_T *gap, const char_u *path,
// convert the file pattern to a regexp pattern
int starts_with_dot = *s == '.' || (flags & EW_DODOT);
- char_u *pat = file_pat_to_reg_pat(s, e, NULL, FALSE);
+ char_u *pat = file_pat_to_reg_pat(s, e, NULL, false);
if (pat == NULL) {
xfree(buf);
return 0;
@@ -647,8 +647,8 @@ static size_t do_path_expand(garray_T *gap, const char_u *path,
if (os_file_is_readable(dirpath) && os_scandir(&dir, dirpath)) {
// Find all matching entries.
char_u *name;
- scandir_next_with_dots(NULL /* initialize */);
- while((name = (char_u *) scandir_next_with_dots(&dir)) && name != NULL) {
+ scandir_next_with_dots(NULL); // initialize
+ while ((name = (char_u *) scandir_next_with_dots(&dir)) && name != NULL) {
if ((name[0] != '.' || (starts_with_dot
&& name[1] != NUL
&& (name[1] != '.' || name[2] != NUL)))
diff --git a/src/nvim/tempfile.c b/src/nvim/tempfile.c
index 6566749f8a..3b1a2ffca6 100644
--- a/src/nvim/tempfile.c
+++ b/src/nvim/tempfile.c
@@ -64,7 +64,7 @@ int delete_recursive(char_u *name)
int result = 0;
if (os_isrealdir(name)) {
- snprintf((char *)NameBuff, MAXPATHL, "%s/*", name);
+ snprintf((char *)NameBuff, MAXPATHL, "%s/*", name); // NOLINT
char_u **files;
int file_count;