[CRIU] [PATCH] action-scripts.h: rm explicit numbering of enum

Cyrill Gorcunov gorcunov at gmail.com
Tue Sep 13 00:00:07 PDT 2016


On Mon, Sep 12, 2016 at 03:44:50PM -0700, Kir Kolyshkin wrote:
> 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 5676383 (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 at openvz.org>
> Signed-off-by: Kir Kolyshkin <kir at openvz.org>
Acked-by: Cyrill Gorcunov <gorcunov at openvz.org>



More information about the CRIU mailing list