Data fetcher: Squash BSD warning.

This commit is contained in:
Michael Drake 2019-11-11 21:27:06 +00:00
parent dae0ff3d26
commit db7f1f01a9
1 changed files with 3 additions and 4 deletions

View File

@ -86,10 +86,7 @@ static void fetch_data_send_header(struct fetch_data_context *ctx,
const char *fmt, ...)
{
char header[64];
fetch_msg msg = {
.type = FETCH_HEADER,
.data.header_or_data.buf = (const uint8_t *) header,
};
fetch_msg msg;
va_list ap;
int len;
@ -101,7 +98,9 @@ static void fetch_data_send_header(struct fetch_data_context *ctx,
return;
}
msg.type = FETCH_HEADER;
msg.data.header_or_data.len = len;
msg.data.header_or_data.buf = (const uint8_t *)header;
fetch_data_send_callback(&msg, ctx);
}