From dcb7d4f904b72e662edd33e869713f6d2c4b5fc2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 5 Jul 2022 00:04:38 +0200 Subject: [PATCH] urldata: reduce three type-members from int to uchar - timecondition - proxytype - method ... previously used their enum type in the struct, which made them unnecesarily large. Closes #9105 --- lib/urldata.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/urldata.h b/lib/urldata.h index 59c2d1e114..b3c6f16130 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1732,10 +1732,10 @@ struct UserDefined { DNS cache */ struct curl_slist *connect_to; /* list of host:port mappings to override the hostname and port to connect to */ - curl_TimeCond timecondition; /* kind of time/date comparison */ - curl_proxytype proxytype; /* what kind of proxy that is in use */ time_t timevalue; /* what time to compare with */ - Curl_HttpReq method; /* what kind of HTTP request (if any) is this */ + unsigned char timecondition; /* kind of time comparison: curl_TimeCond */ + unsigned char proxytype; /* what kind of proxy: curl_proxytype */ + unsigned char method; /* what kind of HTTP request: Curl_HttpReq */ unsigned char httpwant; /* when non-zero, a specific HTTP version requested to be used in the library's request(s) */ struct ssl_config_data ssl; /* user defined SSL stuff */