summaryrefslogtreecommitdiff
path: root/lib/pop3.h
diff options
context:
space:
mode:
authorErik Olsson <erik.eo.olsson@gmail.com>2021-01-16 22:17:51 +0100
committerJay Satiro <raysatiro@yahoo.com>2021-01-20 22:52:34 -0500
commit0a5827571f97feded67d6abc837c332224917f75 (patch)
treece65e4f8137b34233aa9a6287b44fb5a7f9b13dc /lib/pop3.h
parent46f4736356a436dfb0fd26f41e63f6dd76514f53 (diff)
downloadcurl-0a5827571f97feded67d6abc837c332224917f75.tar.gz
lib: save a bit of space with some structure packing
- Reorder some internal struct members so that less padding is used. This is an attempt at saving a bit of space by packing some structs (using pahole to find the holes) where it might make sense to do so without losing readability. I.e., I tried to avoid separating fields that seem grouped together (like the cwd... fields in struct ftp_conn for instance). Also abstained from touching fields behind conditional macros as that quickly can get complicated. Closes https://github.com/curl/curl/pull/6483
Diffstat (limited to 'lib/pop3.h')
-rw-r--r--lib/pop3.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pop3.h b/lib/pop3.h
index 6869c8d59..17629ee2d 100644
--- a/lib/pop3.h
+++ b/lib/pop3.h
@@ -61,6 +61,7 @@ struct pop3_conn {
struct pingpong pp;
pop3state state; /* Always use pop3.c:state() to change state! */
bool ssldone; /* Is connect() over SSL done? */
+ bool tls_supported; /* StartTLS capability supported by server */
size_t eob; /* Number of bytes of the EOB (End Of Body) that
have been received so far */
size_t strip; /* Number of bytes from the start to ignore as
@@ -69,7 +70,6 @@ struct pop3_conn {
unsigned int authtypes; /* Accepted authentication types */
unsigned int preftype; /* Preferred authentication type */
char *apoptimestamp; /* APOP timestamp from the server greeting */
- bool tls_supported; /* StartTLS capability supported by server */
};
extern const struct Curl_handler Curl_handler_pop3;