summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-16 12:20:17 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-11-16 13:00:31 +0100
commitb11b17f40833c2910300df74ddbd2266f466ff43 (patch)
tree4f537f728ae4b0eb7335bc9c5cef685467d21a9d
parent52117f5af831a816c47ceebb83c8244ee93b72fe (diff)
downloadsystemd-b11b17f40833c2910300df74ddbd2266f466ff43.tar.gz
analyze: clarify return value
In this case, EXIT_SUCCESS is the same as 0, but we shouldn't use it in a function that returns negative on error.
-rw-r--r--src/analyze/analyze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
index 204193cb50..ce6f1e395d 100644
--- a/src/analyze/analyze.c
+++ b/src/analyze/analyze.c
@@ -2099,7 +2099,7 @@ static int dump_timespan(int argc, char *argv[], void *userdata) {
putchar('\n');
}
- return EXIT_SUCCESS;
+ return 0;
}
static int test_timestamp_one(const char *p) {