unit-def: drop pointless 0 initialization of first enum value
This is implied in C and we generally don't bother with this, so don't bother with this here either.
This commit is contained in:
parent
47ab8f73e3
commit
22f401b269
|
@ -9,7 +9,7 @@
|
||||||
* when other criteria (cpu weight, nice level) are identical.
|
* when other criteria (cpu weight, nice level) are identical.
|
||||||
* In this case service units have the highest priority. */
|
* In this case service units have the highest priority. */
|
||||||
typedef enum UnitType {
|
typedef enum UnitType {
|
||||||
UNIT_SERVICE = 0,
|
UNIT_SERVICE,
|
||||||
UNIT_MOUNT,
|
UNIT_MOUNT,
|
||||||
UNIT_SWAP,
|
UNIT_SWAP,
|
||||||
UNIT_SOCKET,
|
UNIT_SOCKET,
|
||||||
|
@ -25,7 +25,7 @@ typedef enum UnitType {
|
||||||
} UnitType;
|
} UnitType;
|
||||||
|
|
||||||
typedef enum UnitLoadState {
|
typedef enum UnitLoadState {
|
||||||
UNIT_STUB = 0,
|
UNIT_STUB,
|
||||||
UNIT_LOADED,
|
UNIT_LOADED,
|
||||||
UNIT_NOT_FOUND, /* error condition #1: unit file not found */
|
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 */
|
UNIT_BAD_SETTING, /* error condition #2: we couldn't parse some essential unit file setting */
|
||||||
|
|
Loading…
Reference in a new issue