mirror of
https://github.com/curl/curl.git
synced 2026-08-24 11:23:31 +03:00
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:
parent
23bed347b3
commit
ba07dcd27b
15 changed files with 41 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue