From 1a3cfdc8fe34a0103c21aa0684db8fc0c56a9f2e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 28 May 2018 21:47:43 +0200 Subject: 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index d01f604de..5002e42dd 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -39,6 +39,7 @@ #include "fileio.h" //#include "rlimit-util.h" //#include "rlimit-util.h" +//#include "rlimit-util.h" int config_item_table_lookup( const void *table, @@ -854,22 +855,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; } -- cgit v1.2.3