]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
time-util: use DEFINE_STRING_TABLE_LOOKUP_TO_STRING() macro
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 13 Feb 2023 16:40:56 +0000 (01:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Feb 2023 23:55:27 +0000 (08:55 +0900)
src/basic/time-util.c

index b26c94e49244bb7b8c9f89c339b632534c9546e2..f9d74f771ce8c0d143b29a12082a159dcb5eefd3 100644 (file)
@@ -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) {