summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/libcgroup.h2
-rw-r--r--src/api.c4
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*
diff --git a/src/api.c b/src/api.c
index a0e1b9b..28c0c3d 100644
--- a/src/api.c
+++ b/src/api.c
@@ -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;
}