diff options
-rw-r--r-- | src/analyze/analyze-calendar.c | 6 | ||||
-rw-r--r-- | src/analyze/analyze-timestamp.c | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/analyze/analyze-calendar.c b/src/analyze/analyze-calendar.c index 6daab08443..b3afa1d4b0 100644 --- a/src/analyze/analyze-calendar.c +++ b/src/analyze/analyze-calendar.c @@ -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'); diff --git a/src/analyze/analyze-timestamp.c b/src/analyze/analyze-timestamp.c index 97de4387ab..8c96a8ec55 100644 --- a/src/analyze/analyze-timestamp.c +++ b/src/analyze/analyze-timestamp.c @@ -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'); |