diff options
-rw-r--r-- | include/libcgroup.h | 2 | ||||
-rw-r--r-- | src/api.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/libcgroup.h b/include/libcgroup.h index f424562..52f79f8 100644 --- a/include/libcgroup.h +++ b/include/libcgroup.h @@ -90,6 +90,8 @@ enum cgroup_errors { ECGEOF, /* End of file, iterator */ }; +#define ECGRULESPARSEFAIL ECGROUPPARSEFAIL + /* * Don't use CGROUP_WALK_TYPE_FILE right now. It is added here for * later refactoring and better implementation. Most users *should* @@ -591,7 +591,7 @@ destroyrule: cgroup_free_rule(newrule); parsefail: - ret = ECGROUPPARSEFAIL; + ret = ECGRULESPARSEFAIL; close: fclose(fp); @@ -2366,7 +2366,7 @@ int cgroup_reload_cached_rules() if (ret) { cgroup_dbg("Error parsing configuration file \"%s\": %d.\n", CGRULES_CONF_FILE, ret); - ret = ECGROUPPARSEFAIL; + ret = ECGRULESPARSEFAIL; goto finished; } |