From 65f03e507f7eece690a0e6a05ab6f0408dbcbcb2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 25 Apr 2023 18:04:46 +0200 Subject: urldata: shrink *select_bits int => unsigned char - dselect_bits - cselect_bits ... are using less than 8 bits. Changed types and moved them towards the end of the structs to fit better. Closes #11025 --- lib/vquic/curl_msh3.c | 4 ++-- lib/vquic/curl_ngtcp2.c | 2 +- lib/vquic/curl_quiche.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/vquic') diff --git a/lib/vquic/curl_msh3.c b/lib/vquic/curl_msh3.c index 7d23f9f5b..438a60d47 100644 --- a/lib/vquic/curl_msh3.c +++ b/lib/vquic/curl_msh3.c @@ -192,7 +192,7 @@ static void h3_data_done(struct Curl_cfilter *cf, struct Curl_easy *data) static void drain_stream_from_other_thread(struct Curl_easy *data, struct stream_ctx *stream) { - int bits; + unsigned char bits; /* risky */ bits = CURL_CSELECT_IN; @@ -208,7 +208,7 @@ static void drain_stream(struct Curl_cfilter *cf, struct Curl_easy *data) { struct stream_ctx *stream = H3_STREAM_CTX(data); - int bits; + unsigned char bits; (void)cf; bits = CURL_CSELECT_IN; diff --git a/lib/vquic/curl_ngtcp2.c b/lib/vquic/curl_ngtcp2.c index 6eee431cc..c76c67444 100644 --- a/lib/vquic/curl_ngtcp2.c +++ b/lib/vquic/curl_ngtcp2.c @@ -994,7 +994,7 @@ static void drain_stream(struct Curl_cfilter *cf, struct Curl_easy *data) { struct stream_ctx *stream = H3_STREAM_CTX(data); - int bits; + unsigned char bits; (void)cf; bits = CURL_CSELECT_IN; diff --git a/lib/vquic/curl_quiche.c b/lib/vquic/curl_quiche.c index e32cc366d..ff3f8f4ec 100644 --- a/lib/vquic/curl_quiche.c +++ b/lib/vquic/curl_quiche.c @@ -303,7 +303,7 @@ static void drain_stream(struct Curl_cfilter *cf, struct Curl_easy *data) { struct stream_ctx *stream = H3_STREAM_CTX(data); - int bits; + unsigned char bits; (void)cf; bits = CURL_CSELECT_IN; -- cgit v1.2.1