mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
a23c30fb59
commit
11142e0ad7
32 changed files with 362 additions and 408 deletions
|
@ -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) );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue