diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2010-01-04 18:04:42 +0530 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2010-01-04 20:34:57 +0530 |
commit | e2104d8c20d068dcd927ac4c99b7ddb390eb4f10 (patch) | |
tree | 6ba825f02913290e6924fd44da4920e3534dbd00 /src | |
parent | e036c95c0a2a6c3af02f86826546d16412222d34 (diff) | |
download | libcg-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>
Diffstat (limited to 'src')
-rw-r--r-- | src/api.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |