summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-01-01 11:26:22 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-01-04 15:36:36 +0100
commit1485e8921398f434c38528127c8ba0584324e10d (patch)
treebc7cda499da8b6e16e4bb366e91ed0d1a9685bc9 /lib/setopt.c
parent7ad8a7ba9ebdedceafe8859d3bd4d22ee447648d (diff)
downloadcurl-1485e8921398f434c38528127c8ba0584324e10d.tar.gz
misc: reduce struct and struct field sizes
- by using BIT() instead of bool - imap: shrink struct - ftp: make state 'unsigned char' - ftp: sort ftp_conn struct entries on size - urldata: use smaller fields for SSL version info storage - pop3: reduce the pop3_conn struct size - smtp: reduce the size of the smtp structs Closes #10186
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index bca298769..a9f3c1977 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -463,8 +463,8 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
version_max >= CURL_SSLVERSION_MAX_LAST)
return CURLE_BAD_FUNCTION_ARGUMENT;
- primary->version = version;
- primary->version_max = version_max;
+ primary->version = (unsigned char)version;
+ primary->version_max = (unsigned int)version_max;
}
#else
result = CURLE_NOT_BUILT_IN;