summaryrefslogtreecommitdiffstats
path: root/src/test/test-time-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-07-15 13:02:27 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-07-15 13:03:46 +0200
commitf843f85da8814c42117ac8fdffb613a3a2f02cbf (patch)
tree4cf3db0113aa707680aa8a3dfc53e802d7cbb440 /src/test/test-time-util.c
parentnetwork: slightly simplify log_address_debug() (diff)
downloadsystemd-f843f85da8814c42117ac8fdffb613a3a2f02cbf.tar.xz
systemd-f843f85da8814c42117ac8fdffb613a3a2f02cbf.zip
tree-wide: FORMAT_TIMESTAMP() or friends must be used as a function argument
Follow-ups for #20109.
Diffstat (limited to 'src/test/test-time-util.c')
-rw-r--r--src/test/test-time-util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test-time-util.c b/src/test/test-time-util.c
index bc23affc81..7079bffa7f 100644
--- a/src/test/test-time-util.c
+++ b/src/test/test-time-util.c
@@ -384,8 +384,7 @@ static void test_FORMAT_TIMESTAMP(void) {
assert_se(parse_timestamp(buf, &y) >= 0);
assert_se(x / USEC_PER_SEC == y / USEC_PER_SEC);
- char *t = FORMAT_TIMESTAMP(x);
- assert_se(streq(t, buf));
+ assert_se(streq(FORMAT_TIMESTAMP(x), buf));
}
}