Commit 40edd7ef authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

lib/c/criu.h: rm explicit numbering of enum elements

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 the first commit introducing
this enum (commit 46e8aeed).

While at it, let's also add a comma after the last element, for any
future patch adding more elements to look better.

No functional change.

Cc: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com>
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Acked-by: 's avatarRuslan Kuprieiev <rkuprieiev@cloudlinux.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent cb19e69e
...@@ -32,13 +32,13 @@ enum criu_service_comm { ...@@ -32,13 +32,13 @@ enum criu_service_comm {
}; };
enum criu_cg_mode { enum criu_cg_mode {
CRIU_CG_MODE_IGNORE = 0, CRIU_CG_MODE_IGNORE,
CRIU_CG_MODE_NONE = 1, CRIU_CG_MODE_NONE,
CRIU_CG_MODE_PROPS = 2, CRIU_CG_MODE_PROPS,
CRIU_CG_MODE_SOFT = 3, CRIU_CG_MODE_SOFT,
CRIU_CG_MODE_FULL = 4, CRIU_CG_MODE_FULL,
CRIU_CG_MODE_STRICT = 5, CRIU_CG_MODE_STRICT,
CRIU_CG_MODE_DEFAULT = 6 CRIU_CG_MODE_DEFAULT,
}; };
void criu_set_service_address(char *path); void criu_set_service_address(char *path);
......
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