Commit 11aa2c98 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

flexelinting

parent 2f4a9c8d
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include "vct.h" #include "vct.h"
static void static void
h2h_assert_ready(struct h2h_decode *d) h2h_assert_ready(const struct h2h_decode *d)
{ {
CHECK_OBJ_NOTNULL(d, H2H_DECODE_MAGIC); CHECK_OBJ_NOTNULL(d, H2H_DECODE_MAGIC);
...@@ -280,7 +280,8 @@ h2h_decode_init(const struct h2_sess *h2) ...@@ -280,7 +280,8 @@ h2h_decode_init(const struct h2_sess *h2)
d->reset = d->out; d->reset = d->out;
if (cache_param->h2_max_header_list_size == 0) if (cache_param->h2_max_header_list_size == 0)
d->limit = h2->local_settings.max_header_list_size * 1.5; d->limit =
(long)(h2->local_settings.max_header_list_size * 1.5);
else else
d->limit = cache_param->h2_max_header_list_size; d->limit = cache_param->h2_max_header_list_size;
......
...@@ -79,7 +79,7 @@ h2_sess_panic(struct vsb *vsb, const struct sess *sp) ...@@ -79,7 +79,7 @@ h2_sess_panic(struct vsb *vsb, const struct sess *sp)
VSB_printf(vsb, "refcnt = %d, bogosity = %d, error = %s\n", VSB_printf(vsb, "refcnt = %d, bogosity = %d, error = %s\n",
h2->refcnt, h2->bogosity, h2_panic_error(h2->error)); h2->refcnt, h2->bogosity, h2_panic_error(h2->error));
VSB_printf(vsb, VSB_printf(vsb,
"open_streams = %u, highest_stream = %u," "open_streams = %d, highest_stream = %u,"
" goaway_last_stream = %u,\n", " goaway_last_stream = %u,\n",
h2->open_streams, h2->highest_stream, h2->goaway_last_stream); h2->open_streams, h2->highest_stream, h2->goaway_last_stream);
VSB_cat(vsb, "local_settings = {"); VSB_cat(vsb, "local_settings = {");
......
...@@ -732,7 +732,7 @@ h2_rx_headers(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2) ...@@ -732,7 +732,7 @@ h2_rx_headers(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
* increase under our feet. * increase under our feet.
*/ */
if (h2->open_streams >= if (h2->open_streams >=
h2->local_settings.max_concurrent_streams) { (int)h2->local_settings.max_concurrent_streams) {
VSLb(h2->vsl, SLT_Debug, VSLb(h2->vsl, SLT_Debug,
"H2: stream %u: Hit maximum number of " "H2: stream %u: Hit maximum number of "
"concurrent streams", h2->rxf_stream); "concurrent streams", h2->rxf_stream);
......
...@@ -263,7 +263,7 @@ typedef struct { ...@@ -263,7 +263,7 @@ typedef struct {
#define Tcheck(t) do { (void)pdiff((t).b, (t).e); } while (0) #define Tcheck(t) do { (void)pdiff((t).b, (t).e); } while (0)
#define Tlen(t) (pdiff((t).b, (t).e)) #define Tlen(t) (pdiff((t).b, (t).e))
#define Tstr(s) ((txt){(s), (s) + strlen(s)}) #define Tstr(s) (/*lint -e(446)*/ (txt){(s), (s) + strlen(s)})
#define Tstrcmp(t, s) (strncmp((t).b, (s), Tlen(t))) #define Tstrcmp(t, s) (strncmp((t).b, (s), Tlen(t)))
/* #3020 dummy definitions until PR is merged*/ /* #3020 dummy definitions until PR is merged*/
......
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