From: Zbigniew Jędrzejewski-Szmek Date: Tue, 16 Nov 2021 11:20:17 +0000 (+0100) Subject: analyze: clarify return value X-Git-Tag: v250-rc1~235^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b11b17f40833c2910300df74ddbd2266f466ff43;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 204193cb506..ce6f1e395da 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) {