summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-05-28 21:47:43 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit1a3cfdc8fe34a0103c21aa0684db8fc0c56a9f2e (patch)
tree2675093cbef348dc4dd03b2159d9ddeb5d0116bf /src
parent03464aa3feec8c3f4cbd21145665967214930962 (diff)
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 }...
Diffstat (limited to 'src')
-rw-r--r--src/shared/conf-parser.c7
1 files changed, 6 insertions, 1 deletions
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;
}