analyze: use RET_GATHER()

This commit is contained in:
Yu Watanabe
2024-10-08 19:36:50 +09:00
parent 25999f868f
commit 483db6867a
2 changed files with 2 additions and 10 deletions
+1 -5
View File
@@ -126,11 +126,7 @@ int verb_calendar(int argc, char *argv[], void *userdata) {
n = now(CLOCK_REALTIME); /* We want to use the same "base" for all expressions */
STRV_FOREACH(p, strv_skip(argv, 1)) {
int k;
k = test_calendar_one(n, *p);
if (r == 0 && k < 0)
r = k;
RET_GATHER(r, test_calendar_one(n, *p));
if (p[1])
putchar('\n');
+1 -5
View File
@@ -76,11 +76,7 @@ int verb_timestamp(int argc, char *argv[], void *userdata) {
int r = 0;
STRV_FOREACH(p, strv_skip(argv, 1)) {
int k;
k = test_timestamp_one(*p);
if (r == 0 && k < 0)
r = k;
RET_GATHER(r, test_timestamp_one(*p));
if (p[1])
putchar('\n');