]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
unit-def: drop pointless 0 initialization of first enum value 17031/head
authorLennart Poettering <lennart@poettering.net>
Mon, 14 Sep 2020 10:59:38 +0000 (12:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Sep 2020 11:05:09 +0000 (13:05 +0200)
This is implied in C and we generally don't bother with this, so don't
bother with this here either.

src/basic/unit-def.h

index 53419ecd8a187f9b5f962648ac356bfc84c1f5b7..1fab6c78ab1601ec96b622dcb09764e54b7cea35 100644 (file)
@@ -9,7 +9,7 @@
  * when other criteria (cpu weight, nice level) are identical.
  * In this case service units have the highest priority. */
 typedef enum UnitType {
-        UNIT_SERVICE = 0,
+        UNIT_SERVICE,
         UNIT_MOUNT,
         UNIT_SWAP,
         UNIT_SOCKET,
@@ -25,7 +25,7 @@ typedef enum UnitType {
 } UnitType;
 
 typedef enum UnitLoadState {
-        UNIT_STUB = 0,
+        UNIT_STUB,
         UNIT_LOADED,
         UNIT_NOT_FOUND,    /* error condition #1: unit file not found */
         UNIT_BAD_SETTING,  /* error condition #2: we couldn't parse some essential unit file setting */