]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
urldata: reduce three type-members from int to uchar
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 Jul 2022 22:04:38 +0000 (00:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Jul 2022 08:17:31 +0000 (10:17 +0200)
 - timecondition
 - proxytype
 - method

... previously used their enum type in the struct, which made them
unnecesarily large.

Closes #9105

lib/urldata.h

index 59c2d1e114445cb8fcc5be9bc49c01f8fe8df3f7..b3c6f16130665fd2ebe209000f7cb9248a06fc72 100644 (file)
@@ -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 */