mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
C89 tweaks as per #348.
This commit is contained in:
parent
4cfc42cdaa
commit
ffe64567da
1 changed files with 2 additions and 1 deletions
|
@ -180,12 +180,13 @@ static signed char char_to_hex(const char c)
|
|||
|
||||
static int issue_char(struct libwebsocket *wsi, unsigned char c)
|
||||
{
|
||||
unsigned short frag_len;
|
||||
if (wsi->u.hdr.ah->pos == sizeof(wsi->u.hdr.ah->data)) {
|
||||
lwsl_warn("excessive header content\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
unsigned short frag_len = \
|
||||
frag_len = \
|
||||
wsi->u.hdr.ah->frags[wsi->u.hdr.ah->next_frag_index].len;
|
||||
/* If we haven't hit the token limit, just copy the character into
|
||||
* the header: */
|
||||
|
|
Loading…
Add table
Reference in a new issue