diff options
author | NIIBE Yutaka <[email protected]> | 2023-09-26 04:43:24 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-09-26 04:43:24 +0000 |
commit | 459bd577fc5f10aaa397c679af4611ef54163bd7 (patch) | |
tree | c1253e63bb27de40b685dc166f6dc3e0e53cb21f /g10/packet.h | |
parent | agent: Initialize FP for the case of error return. (diff) | |
download | gnupg-459bd577fc5f10aaa397c679af4611ef54163bd7.tar.gz gnupg-459bd577fc5f10aaa397c679af4611ef54163bd7.zip |
agent,common,gpg: Use unsigned int for 1-bit field.
* agent/trustlist.c (struct trustitem_s): Use unsigned int.
* common/audit.c (struct log_item_s): Likewise.
* g10/packet.h (struct seckey_info): Likewise.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/packet.h')
-rw-r--r-- | g10/packet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/packet.h b/g10/packet.h index defd1005e..76ec78017 100644 --- a/g10/packet.h +++ b/g10/packet.h @@ -342,11 +342,11 @@ struct revoke_info /* Information pertaining to secret keys. */ struct seckey_info { - int is_protected:1; /* The secret info is protected and must */ + unsigned int is_protected:1; /* The secret info is protected and must */ /* be decrypted before use, the protected */ /* MPIs are simply (void*) pointers to memory */ /* and should never be passed to a mpi_xxx() */ - int sha1chk:1; /* SHA1 is used instead of a 16 bit checksum */ + unsigned int sha1chk:1; /* SHA1 is used instead of a 16 bit checksum */ u16 csum; /* Checksum for old protection modes. */ byte algo; /* Cipher used to protect the secret information. */ STRING2KEY s2k; /* S2K parameter. */ |