From 90f18af8bd66e9a4a58e8f38e117dd3c1bbe99b7 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 15 Dec 2019 15:30:48 +0100 Subject: [PATCH] tweaks: reshuffle two declarations, for compactness --- src/rcfile.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index 9764bed1..276d554e 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -1279,14 +1279,12 @@ bool parse_syntax_commands(char *keyword, char *ptr) * function that we consider 'vital' (such as "Exit"). */ static void check_vitals_mapped(void) { - funcstruct *f; - int v; #define VITALS 4 void (*vitals[VITALS])(void) = { do_exit, do_exit, do_exit, do_cancel }; int inmenus[VITALS] = { MMAIN, MBROWSER, MHELP, MYESNO }; - for (v = 0; v < VITALS; v++) { - for (f = allfuncs; f != NULL; f = f->next) { + for (int v = 0; v < VITALS; v++) { + for (funcstruct *f = allfuncs; f != NULL; f = f->next) { if (f->func == vitals[v] && f->menus & inmenus[v]) { const keystruct *s = first_sc_for(inmenus[v], f->func); if (!s) {