mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-30 00:23:28 +03:00
tweaks: add a pair of braces, to silence a compiler warning
Also, put an 'else' on the same line as the preceding closing brace.
This commit is contained in:
parent
2669d3623d
commit
1e2e6733df
@ -1088,18 +1088,17 @@ void parse_rcfile(FILE *rcstream, bool syntax_only, bool headers_only)
|
||||
live_syntax->name);
|
||||
parse_syntax(ptr, headers_only);
|
||||
}
|
||||
}
|
||||
else if (strcasecmp(keyword, "header") == 0) {
|
||||
} else if (strcasecmp(keyword, "header") == 0) {
|
||||
if (headers_only || !syntax_only)
|
||||
grab_and_store("header", ptr, &live_syntax->headers);
|
||||
} else if (strcasecmp(keyword, "magic") == 0)
|
||||
} else if (strcasecmp(keyword, "magic") == 0) {
|
||||
#ifdef HAVE_LIBMAGIC
|
||||
if (headers_only || !syntax_only)
|
||||
grab_and_store("magic", ptr, &live_syntax->magics);
|
||||
#else
|
||||
;
|
||||
#endif
|
||||
else if (headers_only)
|
||||
} else if (headers_only)
|
||||
break;
|
||||
else if (parse_syntax_commands(keyword, ptr))
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user