Commit a713c1b5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Dridi Boukelmoune

Polishing

parent 155a6522
...@@ -893,10 +893,9 @@ h2_frame_complete(struct http_conn *htc) ...@@ -893,10 +893,9 @@ h2_frame_complete(struct http_conn *htc)
/**********************************************************************/ /**********************************************************************/
static h2_error static h2_error
h2_procframe(struct worker *wrk, struct h2_sess *h2, h2_procframe(struct worker *wrk, struct h2_sess *h2, h2_frame h2f)
h2_frame h2f)
{ {
struct h2_req *r2 = NULL; struct h2_req *r2;
h2_error h2e; h2_error h2e;
ASSERT_RXTHR(h2); ASSERT_RXTHR(h2);
......
...@@ -55,18 +55,16 @@ static const char H2_prism[24] = { ...@@ -55,18 +55,16 @@ static const char H2_prism[24] = {
static size_t static size_t
h2_enc_settings(const struct h2_settings *h2s, uint8_t *buf, size_t n) h2_enc_settings(const struct h2_settings *h2s, uint8_t *buf, size_t n)
{ {
uint8_t *b;
size_t len = 0; size_t len = 0;
b = buf;
#define H2_SETTING(U,l,v,d,...) \ #define H2_SETTING(U,l,v,d,...) \
if (h2s->l != d) { \ if (h2s->l != d) { \
len += 6; \ len += 6; \
assert(len <= n); \ assert(len <= n); \
vbe16enc(b, v); \ vbe16enc(buf, v); \
b += 2; \ buf += 2; \
vbe32enc(b, h2s->l); \ vbe32enc(buf, h2s->l); \
b += 4; \ buf += 4; \
} }
#include "tbl/h2_settings.h" #include "tbl/h2_settings.h"
return (len); return (len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment