Browse Source

MT#61856 main: first static, then const

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
pull/1967/head
Donat Zenichev 5 months ago
parent
commit
836423e33c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/main.c

+ 1
- 1
daemon/main.c View File

@ -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)


Loading…
Cancel
Save