aboutsummaryrefslogtreecommitdiffstats
path: root/common/audit.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-09-26 04:43:24 +0000
committerNIIBE Yutaka <[email protected]>2023-09-26 04:43:24 +0000
commit459bd577fc5f10aaa397c679af4611ef54163bd7 (patch)
treec1253e63bb27de40b685dc166f6dc3e0e53cb21f /common/audit.c
parentagent: Initialize FP for the case of error return. (diff)
downloadgnupg-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 'common/audit.c')
-rw-r--r--common/audit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/audit.c b/common/audit.c
index ae0d45216..42a2cf6d6 100644
--- a/common/audit.c
+++ b/common/audit.c
@@ -45,8 +45,8 @@ struct log_item_s
int intvalue; /* A logged integer value. */
char *string; /* A malloced string or NULL. */
ksba_cert_t cert; /* A certifciate or NULL. */
- int have_err:1;
- int have_intvalue:1;
+ unsigned int have_err:1;
+ unsigned int have_intvalue:1;
};
typedef struct log_item_s *log_item_t;