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/mainproc.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 'g10/mainproc.c')
-rw-r--r-- | g10/mainproc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c index 5e6b40b3b..d56790bcd 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -22,7 +22,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <assert.h> #include <time.h> #include "gpg.h" @@ -855,7 +854,7 @@ do_check_sig (CTX c, kbnode_t node, int *is_selfsig, gcry_md_hd_t md_good = NULL; int algo, rc; - assert (node->pkt->pkttype == PKT_SIGNATURE); + log_assert (node->pkt->pkttype == PKT_SIGNATURE); if (is_selfsig) *is_selfsig = 0; sig = node->pkt->pkt.signature; @@ -1523,7 +1522,7 @@ pka_uri_from_sig (CTX c, PKT_signature *sig) { if (!sig->flags.pka_tried) { - assert (!sig->pka_info); + log_assert (!sig->pka_info); sig->flags.pka_tried = 1; sig->pka_info = get_pka_address (sig); if (sig->pka_info) @@ -1637,7 +1636,7 @@ check_sig_and_print (CTX c, kbnode_t node) /* dump_kbnode (c->list); */ n = c->list; - assert (n); + log_assert (n); if ( n->pkt->pkttype == PKT_SIGNATURE ) { /* This is either "S{1,n}" case (detached signature) or @@ -1864,7 +1863,7 @@ check_sig_and_print (CTX c, kbnode_t node) if (un->pkt->pkt.user_id->attrib_data) continue; - assert (pk); + log_assert (pk); /* Since this is just informational, don't actually ask the user to update any trust information. (Note: we register |