aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-02-19 16:22:27 +0000
committerWerner Koch <[email protected]>2015-02-19 16:22:27 +0000
commitd2a70fd8348d6c11d1960caf2afe0701833dad6a (patch)
tree572a1d61a1571d2d87b37186331352312efff4b8 /g10/tdbio.h
parentgpg: Fix segv due to NULL value stored as opaque MPI. (diff)
downloadgnupg-d2a70fd8348d6c11d1960caf2afe0701833dad6a.tar.gz
gnupg-d2a70fd8348d6c11d1960caf2afe0701833dad6a.zip
gpg: Replace remaining uses of stdio by estream.
* g10/sign.c (sign_file): Use log_printf instead of stderr. * g10/tdbdump.c (export_ownertrust): Use estream fucntions. (import_ownertrust): Ditto. * g10/tdbio.c (tdbio_dump_record): Ditto. Change arg to estream_t. -- Reported-by: Guilhem Moulin <[email protected]> Needed for unattended key edits with --status-fd, because since 2.1 status prompts are preceded by es_fflush (in cpr.c:do_get_from_fd) not fflush(3), so the standard output may not be flushed before each prompt. (Which breaks scripts using select(2) to multiplex between the standard and status outputs.) His patch only affected print_and_check_one_sig_colon() but there are many more places where stdio and estream are mixed. This patch now replaces most of them in g10/. At some places stdio is still used, but that is local to a function and should not have side effects. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/tdbio.h')
-rw-r--r--g10/tdbio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/tdbio.h b/g10/tdbio.h
index 4f37de44e..d2595180c 100644
--- a/g10/tdbio.h
+++ b/g10/tdbio.h
@@ -95,7 +95,7 @@ typedef struct trust_record TRUSTREC;
int tdbio_update_version_record(void);
int tdbio_set_dbname( const char *new_dbname, int create, int *r_nofile);
const char *tdbio_get_dbname(void);
-void tdbio_dump_record( TRUSTREC *rec, FILE *fp );
+void tdbio_dump_record( TRUSTREC *rec, estream_t fp );
int tdbio_read_record( ulong recnum, TRUSTREC *rec, int expected );
int tdbio_write_record( TRUSTREC *rec );
int tdbio_db_matches_options(void);