Commit a5cfe2cd5a removed the sentinel error, and tried
to preserve the numbering after that.

It is the right thing to do, except it failed to do so,
by assigning the number "23" instead of the correct one, "50023".

With that, all the iterators are essentially broken.

Signed-off-by: Glauber Costa <glom...@parallels.com>
CC: Ivana Hutarova Varekova <varek...@redhat.com>
CC: Dhaval Giani <dhaval.gi...@gmail.com>
---
 include/libcgroup/error.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/libcgroup/error.h b/include/libcgroup/error.h
index 46d8686..1dfdde9 100644
--- a/include/libcgroup/error.h
+++ b/include/libcgroup/error.h
@@ -62,7 +62,7 @@ enum {
         * Not an real error, it just indicates that iterator has come to end
         * of sequence and no more items are left.
         */
-       ECGEOF = 23,
+       ECGEOF = 50023,
        /** Failed to parse config file (cgconfig.conf). */
        ECGCONFIGPARSEFAIL,
        ECGNAMESPACEPATHS,
-- 
1.7.10.2


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to