urldata: make 'negnpn' use less storage

The connectdata struct field 'negnpn' never holds a value larger than
30, so an unsigned char saves 3 bytes struct space.

Closes #9279
This commit is contained in:
Daniel Stenberg 2022-08-08 13:21:01 +02:00
parent a550831023
commit a29d34b0b7
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1119,7 +1119,8 @@ struct connectdata {
int localportrange;
int cselect_bits; /* bitmask of socket events */
int waitfor; /* current READ/WRITE bits to wait for */
int negnpn; /* APLN or NPN TLS negotiated protocol, CURL_HTTP_VERSION* */
unsigned char negnpn; /* APLN or NPN TLS negotiated protocol,
a CURL_HTTP_VERSION* value */
#if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI)
int socks5_gssapi_enctype;