summaryrefslogtreecommitdiff
path: root/src/wait-private.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-02-06 17:35:40 +0100
committerWerner Koch <wk@gnupg.org>2013-02-06 17:35:40 +0100
commit51fd6d8292cb41d743407e6ac9d86a5ab8e68d8c (patch)
treed431a193f5eece63dba5aa6485416e79f67396cb /src/wait-private.c
parent322552a88db47896881e55c00ca301137cd160c6 (diff)
downloadgpgme-51fd6d8292cb41d743407e6ac9d86a5ab8e68d8c.tar.gz
Use gpg_error_from_syserror instead of directly accessing errno.
-- Also fixed a couple of minor thing; e.g. save the error before calling cleanup functions. Do not save the errno if only free is called in between.
Diffstat (limited to 'src/wait-private.c')
-rw-r--r--src/wait-private.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wait-private.c b/src/wait-private.c
index aab8fb7f..9a43110e 100644
--- a/src/wait-private.c
+++ b/src/wait-private.c
@@ -91,7 +91,7 @@ _gpgme_wait_on_condition (gpgme_ctx_t ctx, volatile int *cond,
{
/* An error occured. Close all fds in this context, and
signal it. */
- err = gpg_error_from_errno (errno);
+ err = gpg_error_from_syserror ();
_gpgme_cancel_with_err (ctx, err, 0);
return err;