diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-07-15 13:02:27 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-07-15 13:03:46 +0200 |
commit | f843f85da8814c42117ac8fdffb613a3a2f02cbf (patch) | |
tree | 4cf3db0113aa707680aa8a3dfc53e802d7cbb440 /src/test/test-time-util.c | |
parent | network: slightly simplify log_address_debug() (diff) | |
download | systemd-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 '')
-rw-r--r-- | src/test/test-time-util.c | 3 |
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)); } } |