From e2104d8c20d068dcd927ac4c99b7ddb390eb4f10 Mon Sep 17 00:00:00 2001 From: Dhaval Giani Date: Mon, 4 Jan 2010 18:04:42 +0530 Subject: 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 --- src/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api.c') 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); } -- cgit