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
This commit is contained in:
Daniel Stenberg 2023-04-25 18:04:46 +02:00
parent acd82c8bfd
commit 65f03e507f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 16 additions and 16 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;