commit 6233ddd6c09d3b19e36a7e23c18f3560fd2de11d
parent b16846015d211eb20bdcd6ded88072b0b8cdd3d4
Author: Evgeny Grin <k2k@drgrin.dev>
Date: Wed, 30 Apr 2025 19:31:25 +0300
lib_get_info: fixed build without defined VERSION macro
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mhd2/lib_get_info.c b/src/mhd2/lib_get_info.c
@@ -110,8 +110,8 @@ MHD_lib_get_info_fixed_sz (enum MHD_LibInfoFixed info_type,
output_buf->v_version_string = ver_str;
return MHD_SC_OK;
#else /* ! VERSION */
- static char str_buf[10] =
- {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1}; /* Larger than needed */
+ static char str_buf[10] = /* Larger than needed */
+ {0, 0, 0, 0, 0, 0, 0, 0, 1, 1};
if (0 != str_buf[8])
{
uint_fast32_t ver_num = MHD_VERSION;
@@ -133,8 +133,8 @@ MHD_lib_get_info_fixed_sz (enum MHD_LibInfoFixed info_type,
str_buf + 6);
str_buf[8] = 0;
}
- output_buf->v_version_str_string.len = 8;
- output_buf->v_version_str_string.cstr = str_buf;
+ output_buf->v_version_string.cstr = str_buf;
+ output_buf->v_version_string.len = 8;
return MHD_SC_OK;
#endif /* ! VERSION */
}