From 390497ea115e1aca93feec297a5bd6ae7b1ba6dd Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 20 Oct 2020 11:52:16 +0200 Subject: Replace most of the remaining stdio calls by estream calls. -- We need to use es_fopen on Windows to cope with non-ascii file names. This is quite a large but fortunately straightforward change. At a very few places we keep using stdio (for example due to the use of popen). GnuPG-bug-id: 5098 Signed-off-by: Werner Koch --- kbx/keybox-init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kbx/keybox-init.c') diff --git a/kbx/keybox-init.c b/kbx/keybox-init.c index 248a0a543..48af5c7a1 100644 --- a/kbx/keybox-init.c +++ b/kbx/keybox-init.c @@ -180,7 +180,7 @@ keybox_release (KEYBOX_HANDLE hd) _keybox_release_blob (hd->saved_found.blob); if (hd->fp) { - fclose (hd->fp); + es_fclose (hd->fp); hd->fp = NULL; } xfree (hd->word_match.name); @@ -253,11 +253,11 @@ _keybox_close_file (KEYBOX_HANDLE hd) { if (roverhd->fp) { - fclose (roverhd->fp); + es_fclose (roverhd->fp); roverhd->fp = NULL; } } - assert (!hd->fp); + log_assert (!hd->fp); } -- cgit v1.2.3