]> git.ipfire.org Git - thirdparty/curl.git/commit
misc: reduce struct and struct field sizes
authorDaniel Stenberg <daniel@haxx.se>
Sun, 1 Jan 2023 10:26:22 +0000 (11:26 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 4 Jan 2023 14:36:36 +0000 (15:36 +0100)
commit1485e8921398f434c38528127c8ba0584324e10d
treebc7cda499da8b6e16e4bb366e91ed0d1a9685bc9
parent7ad8a7ba9ebdedceafe8859d3bd4d22ee447648d
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
12 files changed:
lib/curl_sasl.h
lib/ftp.c
lib/ftp.h
lib/imap.c
lib/imap.h
lib/pop3.c
lib/pop3.h
lib/setopt.c
lib/smtp.c
lib/smtp.h
lib/urldata.h
lib/vtls/vtls.c