diff options
author | Werner Koch <[email protected]> | 2015-10-18 18:07:26 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-10-18 18:08:38 +0000 |
commit | 558bcd43ae0a841cf1e58e06f5d72a19d5bc70cd (patch) | |
tree | e305dcf37ab7febf1dc7c72a774b5af9426963e8 /g10/trustdb.h | |
parent | common: Avoid warning about const char ** assignment. (diff) | |
download | gnupg-558bcd43ae0a841cf1e58e06f5d72a19d5bc70cd.tar.gz gnupg-558bcd43ae0a841cf1e58e06f5d72a19d5bc70cd.zip |
gpg: Fix harmless compiler warnings.
* g10/tofu.h (_tofu_GET_POLICY_ERROR): New. This avoids warnings
about undefined enum values in a switch.
* g10/trustdb.h (_tofu_GET_TRUST_ERROR): New.
* g10/tofu.c (TIME_AGO_FUTURE_IGNORE): Move to the top.
(opendbs): Avoid compiler warning (use braces).
(GET_POLICY_ERROR): Replace define by enum _tofu_GET_POLICY_ERROR.
(get_policy): Remove assert.
(GET_TRUST_ERROR): Replace by _tofu_GET_TRUST_ERROR macro.
(show_statistics): Undef MIN_SECS et al. after use.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/trustdb.h')
-rw-r--r-- | g10/trustdb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/trustdb.h b/g10/trustdb.h index 2c3f86553..adb75d72c 100644 --- a/g10/trustdb.h +++ b/g10/trustdb.h @@ -36,6 +36,11 @@ #define TRUST_FLAG_DISABLED 128 /* d: key/uid disabled */ #define TRUST_FLAG_PENDING_CHECK 256 /* a check-trustdb is pending */ +/* Private value used in tofu.c - must be different from the trust + values. */ +#define _tofu_GET_TRUST_ERROR 100 + +/* Length of the hash used to select UIDs in keyedit.c. */ #define NAMEHASH_LEN 20 |