diff options
author | Werner Koch <[email protected]> | 2016-04-29 09:05:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-04-29 09:05:24 +0000 |
commit | 64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c (patch) | |
tree | 820e0e686ef9672b4b05c1e644026840e5710b6a /g10/card-util.c | |
parent | common: Improve log_assert. (diff) | |
download | gnupg-64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c.tar.gz gnupg-64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c.zip |
gpg: Remove all assert.h and s/assert/log_assert/.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | g10/card-util.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/g10/card-util.c b/g10/card-util.c index 427671684..be1a593e9 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -23,7 +23,6 @@ #include <stdlib.h> #include <string.h> #include <errno.h> -#include <assert.h> #ifdef HAVE_LIBREADLINE # define GNUPG_LIBREADLINE_H_INCLUDED # include <readline/readline.h> @@ -901,7 +900,7 @@ change_private_do (const char *args, int nr) int n; int rc; - assert (nr >= 1 && nr <= 4); + log_assert (nr >= 1 && nr <= 4); do_name[11] = '0' + nr; if (args && (args = strchr (args, '<'))) /* Read it from a file */ @@ -1247,7 +1246,7 @@ show_card_key_info (struct agent_card_info_s *info) static int replace_existing_key_p (struct agent_card_info_s *info, int keyno) { - assert (keyno >= 0 && keyno <= 3); + log_assert (keyno >= 0 && keyno <= 3); if ((keyno == 1 && info->fpr1valid) || (keyno == 2 && info->fpr2valid) @@ -1538,8 +1537,8 @@ card_store_subkey (KBNODE node, int use) int rc; gnupg_isotime_t timebuf; - assert (node->pkt->pkttype == PKT_PUBLIC_KEY - || node->pkt->pkttype == PKT_PUBLIC_SUBKEY); + log_assert (node->pkt->pkttype == PKT_PUBLIC_KEY + || node->pkt->pkttype == PKT_PUBLIC_SUBKEY); pk = node->pkt->pkt.public_key; |