From f3839fe81ddd86632c1a4d70986bbe7e3a751fc2 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 1 Apr 2010 13:24:55 +0000 Subject: Use gpg_err_set_errno to assign values to ERRNO. --- g10/decrypt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'g10/decrypt.c') diff --git a/g10/decrypt.c b/g10/decrypt.c index ef7966d79..82eefcccc 100644 --- a/g10/decrypt.c +++ b/g10/decrypt.c @@ -59,7 +59,7 @@ decrypt_message (const char *filename) { iobuf_close (fp); fp = NULL; - errno = EPERM; + gpg_err_set_errno (EPERM); } if ( !fp ) { @@ -118,7 +118,7 @@ decrypt_message_fd (int input_fd, int output_fd) { iobuf_close (fp); fp = NULL; - errno = EPERM; + gpg_err_set_errno (EPERM); } if (!fp) { @@ -228,7 +228,7 @@ decrypt_messages (int nfiles, char *files[]) { iobuf_close (fp); fp = NULL; - errno = EPERM; + gpg_err_set_errno (EPERM); } if (!fp) { -- cgit v1.2.3