]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: clarify return value
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Nov 2021 11:20:17 +0000 (12:20 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Nov 2021 12:00:31 +0000 (13:00 +0100)
In this case, EXIT_SUCCESS is the same as 0, but we shouldn't use it
in a function that returns negative on error.

src/analyze/analyze.c

index 204193cb506f2792a409e961ca650d53dad7dd78..ce6f1e395da8b8c0a9a8263bcfa0e25268023c2d 100644 (file)
@@ -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) {