From 836423e33c337f99a2ae8bf24fb5fdc74aae135e Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Thu, 3 Jul 2025 16:39:35 +0200 Subject: [PATCH] MT#61856 main: first static, then const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: main.c: In function ‘options’: main.c:1055:9: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] 1055 | const static size_t max_buf_size = | ^~~~~ Change-Id: I500785e712d94ff0969317edf3d7a256dc4e3182 --- daemon/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/main.c b/daemon/main.c index c3658eb7b..094cb07c3 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -1052,7 +1052,7 @@ static void options(int *argc, char ***argv, charp_ht templates) { die("Missing option --listen-tcp, --listen-udp, --listen-ng, --listen-tcp-ng, " "--listen-http, or --listen-https"); - const static size_t max_buf_size = + static const size_t max_buf_size = ((1LL << (sizeof(((struct lws_context_creation_info) {}).pt_serv_buf_size) * 8 - 1)) - 1) / 1024; if (rtpe_config.http_buf_size >= max_buf_size)