mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Remove all assert.h and s/assert/log_assert/.
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
9740dff9f4
commit
64bfeafa52
52 changed files with 232 additions and 285 deletions
|
@ -19,7 +19,6 @@
|
|||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "gpg.h"
|
||||
#include "iobuf.h"
|
||||
|
@ -64,7 +63,7 @@ release_progress_context (progress_filter_context_t *pfx)
|
|||
{
|
||||
if (!pfx)
|
||||
return;
|
||||
assert (pfx->refcount);
|
||||
log_assert (pfx->refcount);
|
||||
if ( --pfx->refcount )
|
||||
return;
|
||||
xfree (pfx->what);
|
||||
|
@ -143,8 +142,8 @@ handle_progress (progress_filter_context_t *pfx, IOBUF inp, const char *name)
|
|||
if (!pfx)
|
||||
return;
|
||||
|
||||
assert (opt.enable_progress_filter);
|
||||
assert (is_status_enabled ());
|
||||
log_assert (opt.enable_progress_filter);
|
||||
log_assert (is_status_enabled ());
|
||||
|
||||
if ( !iobuf_is_pipe_filename (name) && *name )
|
||||
filesize = iobuf_get_filelength (inp, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue