diff options
author | Werner Koch <wk@gnupg.org> | 2006-09-14 18:50:33 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2006-09-14 18:50:33 +0200 |
commit | 03d3322e5fb928d48ea4192fd2f2cc851d791421 (patch) | |
tree | 768acc2e54f6e4abcc405e665bf058aa1556d3f5 /g10/dearmor.c | |
parent | Various fixes and new features. (diff) | |
download | gnupg2-03d3322e5fb928d48ea4192fd2f2cc851d791421.tar.xz gnupg2-03d3322e5fb928d48ea4192fd2f2cc851d791421.zip |
Take advantage of newer gpg-error features.
Diffstat (limited to 'g10/dearmor.c')
-rw-r--r-- | g10/dearmor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/dearmor.c b/g10/dearmor.c index 7f69a1bba..ae89e8e58 100644 --- a/g10/dearmor.c +++ b/g10/dearmor.c @@ -58,7 +58,7 @@ dearmor_file( const char *fname ) errno = EPERM; } if (!inp) { - rc = gpg_error_from_errno (errno); + rc = gpg_error_from_syserror (); log_error(_("can't open `%s': %s\n"), fname? fname: "[stdin]", strerror(errno) ); goto leave; @@ -107,7 +107,7 @@ enarmor_file( const char *fname ) errno = EPERM; } if (!inp) { - rc = gpg_error_from_errno (errno); + rc = gpg_error_from_syserror (); log_error(_("can't open `%s': %s\n"), fname? fname: "[stdin]", strerror(errno) ); goto leave; |