Commit 71485d80 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

action-scripts.h: rm explicit numbering of enum

C standard specifies that the first enum element is 0 and the next ones
are +1 to a previous element (C90, "3.5.2.2 Enumeration specifiers").
Therefore, there is no need to explicitly specify element values.

The explicit initializers were added in commit 56763837 (scripts:
Add ACT_MAX limit and make @action_names being const) but I do not
see the need for them in there either.

No functional change.

Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent fe2073ee
...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
#define __CR_ACTION_SCRIPTS_H__ #define __CR_ACTION_SCRIPTS_H__
enum script_actions { enum script_actions {
ACT_PRE_DUMP = 0, ACT_PRE_DUMP,
ACT_POST_DUMP = 1, ACT_POST_DUMP,
ACT_PRE_RESTORE = 2, ACT_PRE_RESTORE,
ACT_POST_RESTORE = 3, ACT_POST_RESTORE,
ACT_NET_LOCK = 4, ACT_NET_LOCK,
ACT_NET_UNLOCK = 5, ACT_NET_UNLOCK,
ACT_SETUP_NS = 6, ACT_SETUP_NS,
ACT_POST_SETUP_NS = 7, ACT_POST_SETUP_NS,
ACT_POST_RESUME = 8, ACT_POST_RESUME,
ACT_MAX ACT_MAX
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment