]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
install: minor enum beautifications
authorLennart Poettering <lennart@poettering.net>
Mon, 9 Apr 2018 17:45:04 +0000 (19:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 12 Apr 2018 09:02:47 +0000 (11:02 +0200)
src/shared/install.h

index 56a2d4e557a033cfd0bac6a91c9554759f4e2eed..495fa3b1dfc815a6b481a22052a24d8646da1f0a 100644 (file)
@@ -64,13 +64,13 @@ enum UnitFileChangeType {
         UNIT_FILE_IS_MASKED,
         UNIT_FILE_IS_DANGLING,
         _UNIT_FILE_CHANGE_TYPE_MAX,
-        _UNIT_FILE_CHANGE_INVALID = INT_MIN
+        _UNIT_FILE_CHANGE_TYPE_INVALID = INT_MIN
 };
 
 enum UnitFileFlags {
-        UNIT_FILE_RUNTIME = 1,
-        UNIT_FILE_FORCE = 1 << 1,
-        UNIT_FILE_DRY_RUN = 1 << 2,
+        UNIT_FILE_RUNTIME = 1U << 0,
+        UNIT_FILE_FORCE   = 1U << 1,
+        UNIT_FILE_DRY_RUN = 1U << 2,
 };
 
 /* type can either one of the UnitFileChangeTypes listed above, or a negative error.