From 589f46aebcb4425b0f6a290e5b7defb8fb9ffdb1 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Sun, 2 May 2021 10:45:02 +0200 Subject: [PATCH] LKT: Quick format fix --- src/main/lkt.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/lkt.c b/src/main/lkt.c index b30af8bc..4a6d84ef 100644 --- a/src/main/lkt.c +++ b/src/main/lkt.c @@ -1323,17 +1323,19 @@ sigpipe__(int sig) } #define ___USE_SETTER(what) ___set_env_##what +// clang-format off + ___DEFINE_SETTER(host); ___DEFINE_SETTER(port); ___DEFINE_SETTER(pwd); -PRIVATE_FUNCTION void ___USE_SETTER(row_format)(const char UNUSED *name, const char *value, void UNUSED *user) +PRIVATE_FUNCTION void +___USE_SETTER(row_format)(const char UNUSED *name, const char *value, void UNUSED *user) { row_format = value; setup_row_printer(); } -// clang-format off static struct cmd_env env_[] = { CMD_ENV_DEFAULT("host", "localhost", ___USE_SETTER(host)), CMD_ENV_DEFAULT("port", "6600", ___USE_SETTER(port)), @@ -1341,6 +1343,7 @@ static struct cmd_env env_[] = { CMD_ENV("row_format", ___USE_SETTER(row_format)), CMD_ENV_NULL, }; + // clang-format on #undef ___USE_SETTER -- GitLab