chiark / gitweb /
unit: shorten active state enums to make systemctl output nicer
[elogind.git] / src / swap.c
index e2afcc02eb4933c6b639c7062807d619d6dd63dc..2e3e995c3e6c6386185fedbea564b47dabf671ec 100644 (file)
@@ -38,7 +38,7 @@
 static const UnitActiveState state_translation_table[_SWAP_STATE_MAX] = {
         [SWAP_DEAD] = UNIT_INACTIVE,
         [SWAP_ACTIVE] = UNIT_ACTIVE,
-        [SWAP_MAINTENANCE] = UNIT_INACTIVE_MAINTENANCE
+        [SWAP_MAINTENANCE] = UNIT_MAINTENANCE
 };
 
 static void swap_init(Unit *u) {