msh3: change the static_assert to make the code C89

This commit is contained in:
Daniel Stenberg 2022-09-21 10:36:41 +02:00
parent 5263bbb316
commit d4b1ad59a3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -381,9 +381,6 @@ static void MSH3_CALL msh3_shutdown(MSH3_REQUEST *Request, void *IfContext)
(void)stream;
}
static_assert(sizeof(MSH3_HEADER) == sizeof(struct h2h3pseudo),
"Sizes must match for cast below to work");
static ssize_t msh3_stream_send(struct Curl_easy *data,
int sockindex,
const void *mem,
@ -396,6 +393,9 @@ static ssize_t msh3_stream_send(struct Curl_easy *data,
struct h2h3req *hreq;
(void)sockindex;
/* Sizes must match for cast below to work" */
DEBUGASSERT(sizeof(MSH3_HEADER) == sizeof(struct h2h3pseudo));
H3BUGF(infof(data, "msh3_stream_send %zu", len));
if(!stream->req) {