summaryrefslogtreecommitdiffstats
path: root/g10/plaintext.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-01-22 12:06:11 +0100
committerWerner Koch <wk@gnupg.org>2015-01-22 12:06:11 +0100
commit11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993 (patch)
tree0dd1a333374407a96a3258b4cb46a5e634e683ae /g10/plaintext.c
parentgpg: Remove an unused variable. (diff)
downloadgnupg2-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/plaintext.c')
-rw-r--r--g10/plaintext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/plaintext.c b/g10/plaintext.c
index 5d343c6d2..7929f6643 100644
--- a/g10/plaintext.c
+++ b/g10/plaintext.c
@@ -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;