diff options
author | dundargoc <gocdundar@gmail.com> | 2023-12-28 13:42:24 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-12-30 12:45:38 +0100 |
commit | c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec (patch) | |
tree | b1257a572495337ca936c47839bb08aa45528c84 /src/nvim/runtime.c | |
parent | d634cd5b0bc3ac6bdf285432f74a1c10f12b6031 (diff) | |
download | rneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.tar.gz rneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.tar.bz2 rneovim-c89292fcb7f2ebf06efb7c1d00c28f34c6f68fec.zip |
refactor: follow style guide
Diffstat (limited to 'src/nvim/runtime.c')
-rw-r--r-- | src/nvim/runtime.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |