xo-websock: prefer designated initializers for lws_http_mount
Some checks failed
CI / smoke-test (push) Failing after 2m51s

This commit is contained in:
Roland Conybeare 2026-06-05 08:02:10 -04:00
commit c2a3481a90

View file

@ -659,25 +659,25 @@ namespace xo {
/* see lws-context-vhost.h for lws_http_mount */
*p_mount = {
/* .mount_next */ NULL, /* linked-list "next" */
/* .mountpoint */ "/dyn", /* mountpoint URL */
/* .origin */ NULL, /* protocol */
/* .def */ NULL,
/* .protocol */ "http",
/* .cgienv */ NULL,
/* .extra_mimetypes */ NULL,
/* .interpret */ NULL,
/* .cgi_timeout */ 0,
/* .cache_max_age */ 0,
/* .auth_mask */ 0,
/* .cache_reusable */ 0,
/* .cache_revalidate */ 0,
/* .cache_intermediaries */ 0,
/* .origin_protocol */ LWSMPRO_CALLBACK, /* dynamic */
/* .mountpoint_len */ 4, /* char count */
/* .basic_auth_login_file */ NULL,
.mount_next = NULL,
.mountpoint = "/dyn",
.origin = NULL,
.def = NULL,
.protocol = "http",
.cgienv = NULL,
.extra_mimetypes = NULL,
.interpret = NULL,
.cgi_timeout = 0,
.cache_max_age = 0,
.auth_mask = 0,
.cache_reusable = 0,
.cache_revalidate = 0,
.cache_intermediaries = 0,
.origin_protocol = LWSMPRO_CALLBACK, /* dynamic */
.mountpoint_len = 4,
.basic_auth_login_file = NULL,
# if ((LWS_LIBRARY_VERSION_MAJOR < 4) || ((LWS_LIBRARY_VERSION_MAJOR == 4) && (LWS_LIBRARY_VERSION_MINOR < 3)))
/* ._unused[] */ { nullptr, nullptr },
._unused = { nullptr, nullptr },
# endif
};
} /*init_mount_dynamic*/