lib: use BIT() instead of bool in structs more

Since it makes use of bitfields on supported platforms, it saves a few
bytes memory. Might as well use it consistently.

Closes #17114
This commit is contained in:
Daniel Stenberg 2025-04-21 00:08:22 +02:00
parent 23bed347b3
commit ba07dcd27b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
15 changed files with 41 additions and 41 deletions

View file

@ -141,9 +141,6 @@ struct ssh_conn {
const char *passphrase; /* pass-phrase to use */
char *rsa_pub; /* strdup'ed public key file */
char *rsa; /* strdup'ed private key file */
bool authed; /* the connection has been authenticated fine */
bool acceptfail; /* used by the SFTP_QUOTE (continue if
quote command fails) */
sshstate state; /* always use ssh.c:state() to change state! */
sshstate nextstate; /* the state to goto after stopping */
CURLcode actualcode; /* the actual error code */
@ -213,6 +210,9 @@ struct ssh_conn {
curl_off_t offset;
#endif /* USE_LIBSSH */
BIT(initialised);
BIT(authed); /* the connection has been authenticated fine */
BIT(acceptfail); /* used by the SFTP_QUOTE (continue if
quote command fails) */
};
#ifdef USE_LIBSSH