From 5a490b669e6501c66d64b19c80de7c7ea57da7aa Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 31 Jan 2019 10:39:51 +0100 Subject: [PATCH] MINOR: mux-h2: max-concurrent-streams should be unsigned We compare it to other unsigned values, let's make it unsigned as well. --- src/mux_h2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mux_h2.c b/src/mux_h2.c index 6b4ba6111..a811c0a26 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -224,7 +224,7 @@ DECLARE_STATIC_POOL(pool_head_h2s, "h2s", sizeof(struct h2s)); /* a few settings from the global section */ static int h2_settings_header_table_size = 4096; /* initial value */ static int h2_settings_initial_window_size = 65535; /* initial value */ -static int h2_settings_max_concurrent_streams = 100; +static unsigned int h2_settings_max_concurrent_streams = 100; /* a dmumy closed stream */ static const struct h2s *h2_closed_stream = &(const struct h2s){ @@ -5424,7 +5424,7 @@ static int h2_parse_max_concurrent_streams(char **args, int section_type, struct return -1; h2_settings_max_concurrent_streams = atoi(args[1]); - if (h2_settings_max_concurrent_streams < 0) { + if ((int)h2_settings_max_concurrent_streams < 0) { memprintf(err, "'%s' expects a positive numeric value.", args[0]); return -1; }