From: Yu Watanabe Date: Mon, 13 Feb 2023 16:40:56 +0000 (+0900) Subject: time-util: use DEFINE_STRING_TABLE_LOOKUP_TO_STRING() macro X-Git-Tag: v254-rc1~1163^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d227a42aadf04c23c668ac3089bc7b4a9baaf7e1;p=thirdparty%2Fsystemd.git time-util: use DEFINE_STRING_TABLE_LOOKUP_TO_STRING() macro --- diff --git a/src/basic/time-util.c b/src/basic/time-util.c index b26c94e4924..f9d74f771ce 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) {