mirror of
https://github.com/curl/curl.git
synced 2026-07-24 14:27:16 +03:00
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:
parent
acd82c8bfd
commit
65f03e507f
6 changed files with 16 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue