From 7ef7e15bd7991e4ca4c99c8743168facac573b2b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 28 May 2018 21:47:43 +0200 Subject: [PATCH] conf-parser: add a bit more whitespace We usually seperate case statements within a switch from each other by empty lines. We also often add an empty line after multi-line function prototypes, let's do so here too Also, no trailing ; after }... --- src/shared/conf-parser.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 84d0c16996..b74daefa2b 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -839,22 +839,26 @@ int config_parse_warn_compat( const char *rvalue, void *data, void *userdata) { + Disabled reason = ltype; switch(reason) { + case DISABLED_CONFIGURATION: log_syntax(unit, LOG_DEBUG, filename, line, 0, "Support for option %s= has been disabled at compile time and it is ignored", lvalue); break; + case DISABLED_LEGACY: log_syntax(unit, LOG_INFO, filename, line, 0, "Support for option %s= has been removed and it is ignored", lvalue); break; + case DISABLED_EXPERIMENTAL: log_syntax(unit, LOG_INFO, filename, line, 0, "Support for option %s= has not yet been enabled and it is ignored", lvalue); break; - }; + } return 0; }