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

flexelinting

parent a8dd3c8c
......@@ -38,7 +38,7 @@
#include "vct.h"
static void
h2h_assert_ready(struct h2h_decode *d)
h2h_assert_ready(const struct h2h_decode *d)
{
CHECK_OBJ_NOTNULL(d, H2H_DECODE_MAGIC);
......@@ -278,7 +278,8 @@ h2h_decode_init(const struct h2_sess *h2)
d->reset = d->out;
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
d->limit = cache_param->h2_max_header_list_size;
......
......@@ -725,7 +725,7 @@ h2_rx_headers(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2)
* increase under our feet.
*/
if (h2->open_streams >=
h2->local_settings.max_concurrent_streams) {
(int)h2->local_settings.max_concurrent_streams) {
VSLb(h2->vsl, SLT_Debug,
"H2: stream %u: Hit maximum number of "
"concurrent streams", h2->rxf_stream);
......
......@@ -241,5 +241,5 @@ typedef struct {
#define Tcheck(t) do { (void)pdiff((t).b, (t).e); } while (0)
#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)))
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