From a5cfe2cd5afdab924b836788c4cf8b6bcd4fa368 Mon Sep 17 00:00:00 2001 From: Ivana Hutarova Varekova Date: Sun, 6 May 2012 12:59:50 +0200 Subject: [PATCH] Remove unused error code ECGSENTINEL - it was used for test whether error code is in valid interval, now it is unused. Changelog: * let the next error have the same number as before the change, not to break ABI Signed-off-by: Ivana Hutarova Varekova Acked-by: Dhaval Giani --- include/libcgroup/error.h | 7 +------ src/api.c | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/include/libcgroup/error.h b/include/libcgroup/error.h index 91b5c1c9..46d86860 100644 --- a/include/libcgroup/error.h +++ b/include/libcgroup/error.h @@ -58,16 +58,11 @@ enum { /** Rules list does not exist. */ ECGROUPNORULES, ECGMOUNTFAIL, - /** - * Not an real error, just a auxiliary mark in the enum. - * Please insert further error codes above this. - */ - ECGSENTINEL, /** * Not an real error, it just indicates that iterator has come to end * of sequence and no more items are left. */ - ECGEOF, + ECGEOF = 23, /** Failed to parse config file (cgconfig.conf). */ ECGCONFIGPARSEFAIL, ECGNAMESPACEPATHS, diff --git a/src/api.c b/src/api.c index d98312e6..29de7770 100644 --- a/src/api.c +++ b/src/api.c @@ -109,7 +109,6 @@ const char const *cgroup_strerror_codes[] = { "Cgroup parsing failed", "Cgroup, rules file does not exist", "Cgroup mounting failed", - "Sentinel", "End of File or iterator", "Failed to parse config file", "Have multiple paths for the same namespace", -- 2.47.2