diff options
author | Werner Koch <[email protected]> | 2016-10-07 05:54:38 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-10-07 05:54:38 +0000 |
commit | 5d43d28aa3c44c3a27fde823f467b0c4be1a58c2 (patch) | |
tree | ac9b72878c427c77de2058c3ffbf230aaf7a910d /g10/gpg.c | |
parent | agent, dirmngr, scd: Fix init_common_subsystems. (diff) | |
download | gnupg-5d43d28aa3c44c3a27fde823f467b0c4be1a58c2.tar.gz gnupg-5d43d28aa3c44c3a27fde823f467b0c4be1a58c2.zip |
gpg: Put extra parens around bit tests.
* g10/options.h (DBG_MPI): New.
* g10/gpg.c (set_debug): Use macro or extra parens for binary operator.
* g10/parse-packet.c (set_packet_list_mode): Use dbg macro.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | g10/gpg.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1190,15 +1190,15 @@ set_debug (const char *level) g10_exit (2); } - if (opt.debug & DBG_MEMORY_VALUE ) + if ((opt.debug & DBG_MEMORY_VALUE)) memory_debug_mode = 1; - if (opt.debug & DBG_MEMSTAT_VALUE ) + if ((opt.debug & DBG_MEMSTAT_VALUE)) memory_stat_debug_mode = 1; - if (opt.debug & DBG_MPI_VALUE) + if (DBG_MPI) gcry_control (GCRYCTL_SET_DEBUG_FLAGS, 2); - if (opt.debug & DBG_CRYPTO_VALUE ) + if (DBG_CRYPTO) gcry_control (GCRYCTL_SET_DEBUG_FLAGS, 1); - if (opt.debug & DBG_IOBUF_VALUE ) + if ((opt.debug & DBG_IOBUF_VALUE)) iobuf_debug_mode = 1; gcry_control (GCRYCTL_SET_VERBOSITY, (int)opt.verbose); |