Skip to content
Commit 71485d80 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov
Browse files

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: default avatarKir Kolyshkin <kir@openvz.org>
Acked-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
parent fe2073ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment