]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
conf-parser: add a bit more whitespace
authorLennart Poettering <lennart@poettering.net>
Mon, 28 May 2018 19:47:43 +0000 (21:47 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 May 2018 13:25:22 +0000 (15:25 +0200)
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

index 84d0c16996ed0a912a6b083ae74dcee223428dca..b74daefa2bf9e1c8fc1be0c2aa599f0aa62faa4e 100644 (file)
@@ -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;
 }