diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-13 17:40:56 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-24 00:55:27 +0100 |
commit | d227a42aadf04c23c668ac3089bc7b4a9baaf7e1 (patch) | |
tree | 687bb206062175dcb6c4bf5fe994e812d2a62358 | |
parent | time-util: drop redundant space (diff) | |
download | systemd-d227a42aadf04c23c668ac3089bc7b4a9baaf7e1.tar.xz systemd-d227a42aadf04c23c668ac3089bc7b4a9baaf7e1.zip |
time-util: use DEFINE_STRING_TABLE_LOOKUP_TO_STRING() macro
-rw-r--r-- | src/basic/time-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/time-util.c b/src/basic/time-util.c index b26c94e492..f9d74f771c 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -1617,7 +1617,7 @@ static const char* const timestamp_style_table[_TIMESTAMP_STYLE_MAX] = { }; /* Use the macro for enum → string to allow for aliases */ -_DEFINE_STRING_TABLE_LOOKUP_TO_STRING(timestamp_style, TimestampStyle,); +DEFINE_STRING_TABLE_LOOKUP_TO_STRING(timestamp_style, TimestampStyle); /* For the string → enum mapping we use the generic implementation, but also support two aliases */ TimestampStyle timestamp_style_from_string(const char *s) { |