summaryrefslogtreecommitdiff
path: root/src/cgls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgls.c')
-rw-r--r--src/cgls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cgls.c b/src/cgls.c
index f1f3046edf..93617ddc2f 100644
--- a/src/cgls.c
+++ b/src/cgls.c
@@ -72,7 +72,7 @@ static int parse_argv(int argc, char *argv[]) {
}
int main(int argc, char *argv[]) {
- int r = 0, retval = 1;
+ int r = 0, retval = EXIT_FAILURE;
log_parse_environment();
log_open();
@@ -80,7 +80,7 @@ int main(int argc, char *argv[]) {
if ((r = parse_argv(argc, argv)) < 0)
goto finish;
else if (r == 0) {
- retval = 0;
+ retval = EXIT_SUCCESS;
goto finish;
}
@@ -115,7 +115,7 @@ int main(int argc, char *argv[]) {
if (r < 0)
log_error("Failed to list cgroup tree: %s", strerror(-r));
- retval = 0;
+ retval = EXIT_SUCCESS;
finish: