summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhaval Giani <dhaval@linux.vnet.ibm.com>2010-01-04 18:04:42 +0530
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2010-01-04 20:34:57 +0530
commite2104d8c20d068dcd927ac4c99b7ddb390eb4f10 (patch)
tree6ba825f02913290e6924fd44da4920e3534dbd00
parente036c95c0a2a6c3af02f86826546d16412222d34 (diff)
downloadlibcg-e2104d8c20d068dcd927ac4c99b7ddb390eb4f10.tar.gz
libcg-e2104d8c20d068dcd927ac4c99b7ddb390eb4f10.tar.xz
libcg-e2104d8c20d068dcd927ac4c99b7ddb390eb4f10.zip
libcgroup: Remove assert in cgroup_strerror()
Since we add new errors after ECGSENTINEL, it makes no sense to have the assert in place. Remove the assert. Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
-rw-r--r--src/api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api.c b/src/api.c
index 863df33..967a48e 100644
--- a/src/api.c
+++ b/src/api.c
@@ -106,6 +106,7 @@ char *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",
};
@@ -2496,7 +2497,6 @@ cleanup_path:
char *cgroup_strerror(int code)
{
- assert((code >= ECGROUPNOTCOMPILED) && (code < ECGSENTINEL));
if (code == ECGOTHER) {
return strerror_r(cgroup_get_last_errno(), errtext, MAXLEN);
}