summaryrefslogtreecommitdiffstats
path: root/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'api.c')
-rw-r--r--api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.c b/api.c
index a001616..2d4490d 100644
--- a/api.c
+++ b/api.c
@@ -382,7 +382,7 @@ static int cg_set_control_value(char *path, char *val)
fclose(control_file);
return ECGROUPNOTALLOWED;
}
- return errno;
+ return ECGROUPVALUENOTEXIST;
}
fprintf(control_file, "%s", val);