]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Remove unused error code ECGSENTINEL - it was used for test whether error
authorIvana Hutarova Varekova <varekova@redhat.com>
Sun, 6 May 2012 10:59:50 +0000 (12:59 +0200)
committerIvana Hutarova Varekova <varekova@redhat.com>
Sun, 6 May 2012 10:59:50 +0000 (12:59 +0200)
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 <varekova@redhat.com>
Acked-by: Dhaval Giani <dhaval.giani@gmail.com>
include/libcgroup/error.h
src/api.c

index 91b5c1c901a9bfd7b610eb6a2569eae60a752a12..46d86860971f63bdd490f96e41b595a51b8b93be 100644 (file)
@@ -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,
index d98312e6f2b3eecf158b7d91350134221b6e5f96..29de77708c13f9283cefb91849163d331084026d 100644 (file)
--- 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",