mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
Fix linter errors.
This commit is contained in:
@@ -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
|
// convert the file pattern to a regexp pattern
|
||||||
int starts_with_dot = *s == '.' || (flags & EW_DODOT);
|
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) {
|
if (pat == NULL) {
|
||||||
xfree(buf);
|
xfree(buf);
|
||||||
return 0;
|
return 0;
|
||||||
@@ -647,7 +647,7 @@ static size_t do_path_expand(garray_T *gap, const char_u *path,
|
|||||||
if (os_file_is_readable(dirpath) && os_scandir(&dir, dirpath)) {
|
if (os_file_is_readable(dirpath) && os_scandir(&dir, dirpath)) {
|
||||||
// Find all matching entries.
|
// Find all matching entries.
|
||||||
char_u *name;
|
char_u *name;
|
||||||
scandir_next_with_dots(NULL /* initialize */);
|
scandir_next_with_dots(NULL); // initialize
|
||||||
while ((name = (char_u *) scandir_next_with_dots(&dir)) && name != NULL) {
|
while ((name = (char_u *) scandir_next_with_dots(&dir)) && name != NULL) {
|
||||||
if ((name[0] != '.' || (starts_with_dot
|
if ((name[0] != '.' || (starts_with_dot
|
||||||
&& name[1] != NUL
|
&& name[1] != NUL
|
||||||
|
@@ -64,7 +64,7 @@ int delete_recursive(char_u *name)
|
|||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
if (os_isrealdir(name)) {
|
if (os_isrealdir(name)) {
|
||||||
snprintf((char *)NameBuff, MAXPATHL, "%s/*", name);
|
snprintf((char *)NameBuff, MAXPATHL, "%s/*", name); // NOLINT
|
||||||
|
|
||||||
char_u **files;
|
char_u **files;
|
||||||
int file_count;
|
int file_count;
|
||||||
|
Reference in New Issue
Block a user