diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-10-08 06:55:56 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-10-08 12:36:50 +0200 |
commit | 483db6867ac62db982c0035517c989b32e1da448 (patch) | |
tree | 5371e11d0c4ae35cf2cb84417298809745e3d4e3 /src/analyze/analyze-timestamp.c | |
parent | test: add test cases for timestamp with time zone (diff) | |
download | systemd-483db6867ac62db982c0035517c989b32e1da448.tar.xz systemd-483db6867ac62db982c0035517c989b32e1da448.zip |
analyze: use RET_GATHER()
Diffstat (limited to 'src/analyze/analyze-timestamp.c')
-rw-r--r-- | src/analyze/analyze-timestamp.c | 6 |
1 files changed, 1 insertions, 5 deletions
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'); |