summaryrefslogtreecommitdiffstats
path: root/g10/encrypt.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-04-01 15:24:55 +0200
committerWerner Koch <wk@gnupg.org>2010-04-01 15:24:55 +0200
commitf3839fe81ddd86632c1a4d70986bbe7e3a751fc2 (patch)
tree6fa1386cb24d9477a4d7ca95f6230baa5be6589f /g10/encrypt.c
parentMinor cleanups (diff)
downloadgnupg2-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.tar.xz
gnupg2-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.zip
Use gpg_err_set_errno to assign values to ERRNO.
Diffstat (limited to 'g10/encrypt.c')
-rw-r--r--g10/encrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/encrypt.c b/g10/encrypt.c
index b193d4b4e..881fecfc1 100644
--- a/g10/encrypt.c
+++ b/g10/encrypt.c
@@ -190,7 +190,7 @@ encrypt_simple (const char *filename, int mode, int use_seskey)
{
iobuf_close (inp);
inp = NULL;
- errno = EPERM;
+ gpg_err_set_errno (EPERM);
}
if (!inp)
{
@@ -531,7 +531,7 @@ encrypt_crypt (int filefd, const char *filename,
{
iobuf_close (inp);
inp = NULL;
- errno = EPERM;
+ gpg_err_set_errno (EPERM);
}
if (!inp)
{