From 7c41c8641f0a5fcfae36b4b0757a42681e99711f Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sat, 1 Jul 2017 23:44:01 -0500 Subject: [PATCH] tweaks: remove unneeded braces, and mark empty parameter list as void This matches the style in the rest of the code. --- src/prompt.c | 4 ++-- src/text.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/prompt.c b/src/prompt.c index a815beea..ac8fba67 100644 --- 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 index af629075..95b540eb 100644 --- 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;