On Thu, May 3, 2012 at 10:02 PM, Ivana Varekova <varek...@redhat.com> wrote: > 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 <varek...@redhat.com> Acked-by: Dhaval Giani <dhaval.gi...@gmail.com>
> --- > > include/libcgroup/error.h | 7 +------ > src/api.c | 1 - > 2 files changed, 1 insertions(+), 7 deletions(-) > > diff --git a/include/libcgroup/error.h b/include/libcgroup/error.h > index 91b5c1c..1dfdde9 100644 > --- a/include/libcgroup/error.h > +++ b/include/libcgroup/error.h > @@ -59,15 +59,10 @@ enum { > 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 = 50023, > /** Failed to parse config file (cgconfig.conf). */ > ECGCONFIGPARSEFAIL, > ECGNAMESPACEPATHS, > diff --git a/src/api.c b/src/api.c > index c6e258e..793ccd3 100644 > --- a/src/api.c > +++ b/src/api.c > @@ -110,7 +110,6 @@ const char const *cgroup_strerror_codes[] = { > "Cgroup, rules file does not exist", > "Cgroup mounting failed", > "The config file can not be opened", > - "Sentinel", > "End of File or iterator", > "Failed to parse config file", > "Have multiple paths for the same namespace", > ------------------------------------------------------------------------------ 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