From c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec Mon Sep 17 00:00:00 2001 From: dundargoc Date: Thu, 28 Dec 2023 13:42:24 +0100 Subject: refactor: follow style guide --- src/nvim/runtime.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/nvim/runtime.c') diff --git a/src/nvim/runtime.c b/src/nvim/runtime.c index 29b70e05ca..d2e7af40e7 100644 --- a/src/nvim/runtime.c +++ b/src/nvim/runtime.c @@ -303,7 +303,7 @@ static bool source_callback_vim_lua(int num_fnames, char **fnames, bool all, voi for (int i = 0; i < num_fnames; i++) { if (path_with_extension(fnames[i], "vim")) { - (void)do_source(fnames[i], false, DOSO_NONE, cookie); + do_source(fnames[i], false, DOSO_NONE, cookie); did_one = true; if (!all) { return true; @@ -313,7 +313,7 @@ static bool source_callback_vim_lua(int num_fnames, char **fnames, bool all, voi for (int i = 0; i < num_fnames; i++) { if (path_with_extension(fnames[i], "lua")) { - (void)do_source(fnames[i], false, DOSO_NONE, cookie); + do_source(fnames[i], false, DOSO_NONE, cookie); did_one = true; if (!all) { return true; @@ -337,7 +337,7 @@ static bool source_callback(int num_fnames, char **fnames, bool all, void *cooki for (int i = 0; i < num_fnames; i++) { if (!path_with_extension(fnames[i], "vim") && !path_with_extension(fnames[i], "lua")) { - (void)do_source(fnames[i], false, DOSO_NONE, cookie); + do_source(fnames[i], false, DOSO_NONE, cookie); did_one = true; if (!all) { return true; @@ -1804,7 +1804,7 @@ void ex_options(exarg_T *eap) bool multi_mods = 0; buf[0] = NUL; - (void)add_win_cmd_modifiers(buf, &cmdmod, &multi_mods); + add_win_cmd_modifiers(buf, &cmdmod, &multi_mods); os_setenv("OPTWIN_CMD", buf, 1); cmd_source(SYS_OPTWIN_FILE, NULL); @@ -1845,7 +1845,7 @@ static FILE *fopen_noinh_readbin(char *filename) return NULL; } - (void)os_set_cloexec(fd_tmp); + os_set_cloexec(fd_tmp); return fdopen(fd_tmp, READBIN); } @@ -2623,7 +2623,7 @@ static char *get_one_sourceline(struct source_cookie *sp) int c; char *buf; #ifdef USE_CRNL - int has_cr; // CR-LF found + bool has_cr; // CR-LF found #endif bool have_read = false; -- cgit