nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 7c41c8641f0a5fcfae36b4b0757a42681e99711f
parent 6295cca03b37b576ab9084176253a7adf2b6c135
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sat,  1 Jul 2017 23:44:01 -0500

tweaks: remove unneeded braces, and mark empty parameter list as void

This matches the style in the rest of the code.

Diffstat:
Msrc/prompt.c | 4++--
Msrc/text.c | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/prompt.c b/src/prompt.c @@ -137,9 +137,9 @@ int do_statusbar_input(bool *ran_func, bool *finished) s->scfunc == do_delete || s->scfunc == do_backspace)) ; - else if (s->scfunc == do_verbatim_input) { + else if (s->scfunc == do_verbatim_input) do_statusbar_verbatim_input(); - } else if (s->scfunc == do_cut_text_void) + else if (s->scfunc == do_cut_text_void) do_statusbar_cut_text(); else if (s->scfunc == do_delete) do_statusbar_delete(); diff --git a/src/text.c b/src/text.c @@ -456,7 +456,7 @@ bool white_string(const char *s) #ifdef ENABLE_COMMENT /* Comment or uncomment the current line or the marked lines. */ -void do_comment() +void do_comment(void) { const char *comment_seq = GENERAL_COMMENT_CHARACTER; undo_type action = UNCOMMENT;