diff options
author | Werner Koch <wk@gnupg.org> | 2015-01-22 12:06:11 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-01-22 12:06:11 +0100 |
commit | 11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993 (patch) | |
tree | 0dd1a333374407a96a3258b4cb46a5e634e683ae /g10/tdbdump.c | |
parent | gpg: Remove an unused variable. (diff) | |
download | gnupg2-11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993.tar.xz gnupg2-11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993.zip |
gpg: Replace remaining old error code macros by GPG_ERR_.
* g10/gpg.h (g10_errstr): Remove macro and change all occurrences by
gpg_strerror.
(G10ERR_): Remove all macros and change all occurrences by their
GPG_ERR_ counterparts.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/tdbdump.c')
-rw-r--r-- | g10/tdbdump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/tdbdump.c b/g10/tdbdump.c index 92d70a734..c12e9b7a3 100644 --- a/g10/tdbdump.c +++ b/g10/tdbdump.c @@ -56,7 +56,7 @@ write_record( TRUSTREC *rec ) if( !rc ) return; log_error(_("trust record %lu, type %d: write failed: %s\n"), - rec->recnum, rec->rectype, g10_errstr(rc) ); + rec->recnum, rec->rectype, gpg_strerror (rc) ); tdbio_invalid(); } @@ -214,7 +214,7 @@ import_ownertrust( const char *fname ) } else /* error */ log_error (_("error finding trust record in '%s': %s\n"), - fname, g10_errstr(rc)); + fname, gpg_strerror (rc)); } if( ferror(fp) ) log_error ( _("read error in '%s': %s\n"), fname, strerror(errno) ); @@ -226,7 +226,7 @@ import_ownertrust( const char *fname ) revalidation_mark (); rc = tdbio_sync (); if (rc) - log_error (_("trustdb: sync failed: %s\n"), g10_errstr(rc) ); + log_error (_("trustdb: sync failed: %s\n"), gpg_strerror (rc) ); } } |