From: Ivana Hutarova Varekova Date: Sun, 6 May 2012 10:59:50 +0000 (+0200) Subject: Remove unused error code ECGSENTINEL - it was used for test whether error X-Git-Tag: v0.41~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5cfe2cd5afdab924b836788c4cf8b6bcd4fa368;p=thirdparty%2Flibcgroup.git 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 --- 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",