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
|
@ -144,7 +144,7 @@ handle_plaintext (PKT_plaintext * pt, md_filter_context_t * mfx,
|
|||
if (!tmp || !*tmp)
|
||||
{
|
||||
xfree (tmp);
|
||||
/* FIXME: Below used to be G10ERR_CREATE_FILE */
|
||||
/* FIXME: Below used to be GPG_ERR_CREATE_FILE */
|
||||
err = gpg_error (GPG_ERR_GENERAL);
|
||||
goto leave;
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ handle_plaintext (PKT_plaintext * pt, md_filter_context_t * mfx,
|
|||
if (!fp)
|
||||
{
|
||||
log_error (_("error creating '%s': %s\n"), fname, gpg_strerror (err));
|
||||
err = G10ERR_CREATE_FILE;
|
||||
err = GPG_ERR_CREATE_FILE;
|
||||
if (errno == 106)
|
||||
log_info ("Do output file and input file have the same name?\n");
|
||||
goto leave;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue