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

This matches the style in the rest of the code.
master
David Lawrence Ramsey 2017-07-01 23:44:01 -05:00 committed by Benno Schulenberg
parent 6295cca03b
commit 7c41c8641f
2 changed files with 3 additions and 3 deletions

View File

@ -137,9 +137,9 @@ int do_statusbar_input(bool *ran_func, bool *finished)
s->scfunc == do_delete || s->scfunc == do_delete ||
s->scfunc == do_backspace)) s->scfunc == do_backspace))
; ;
else if (s->scfunc == do_verbatim_input) { else if (s->scfunc == do_verbatim_input)
do_statusbar_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(); do_statusbar_cut_text();
else if (s->scfunc == do_delete) else if (s->scfunc == do_delete)
do_statusbar_delete(); do_statusbar_delete();

View File

@ -456,7 +456,7 @@ bool white_string(const char *s)
#ifdef ENABLE_COMMENT #ifdef ENABLE_COMMENT
/* Comment or uncomment the current line or the marked lines. */ /* Comment or uncomment the current line or the marked lines. */
void do_comment() void do_comment(void)
{ {
const char *comment_seq = GENERAL_COMMENT_CHARACTER; const char *comment_seq = GENERAL_COMMENT_CHARACTER;
undo_type action = UNCOMMENT; undo_type action = UNCOMMENT;