aboutsummaryrefslogtreecommitdiffstats
path: root/g10/photoid.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-04-01 13:24:55 +0000
committerWerner Koch <[email protected]>2010-04-01 13:24:55 +0000
commitf3839fe81ddd86632c1a4d70986bbe7e3a751fc2 (patch)
tree6fa1386cb24d9477a4d7ca95f6230baa5be6589f /g10/photoid.c
parentMinor cleanups (diff)
downloadgnupg-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.tar.gz
gnupg-f3839fe81ddd86632c1a4d70986bbe7e3a751fc2.zip
Use gpg_err_set_errno to assign values to ERRNO.
Diffstat (limited to 'g10/photoid.c')
-rw-r--r--g10/photoid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/photoid.c b/g10/photoid.c
index 1ac1218d7..66e4645f9 100644
--- a/g10/photoid.c
+++ b/g10/photoid.c
@@ -110,7 +110,7 @@ generate_photo_id(PKT_public_key *pk,const char *photo_name)
{
iobuf_close (file);
file = NULL;
- errno = EPERM;
+ gpg_err_set_errno (EPERM);
}
if(!file)
{