diff options
author | Marcus Brinkmann <[email protected]> | 2010-05-06 13:39:55 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2010-05-06 13:39:55 +0000 |
commit | 749325d6c10fd6a8d8fafa3c9c25b6822eaf0dc5 (patch) | |
tree | 5e43ee1064a9e68208c7ab288e08e89c814caa5f /src/assuan-support.c | |
parent | 2010-04-19 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-749325d6c10fd6a8d8fafa3c9c25b6822eaf0dc5.tar.gz gpgme-749325d6c10fd6a8d8fafa3c9c25b6822eaf0dc5.zip |
2010-05-06 Marcus Brinkmann <[email protected]>
* configure.ac: Require libgpg-error 1.8.
src/
2010-05-06 Marcus Brinkmann <[email protected]>
* sign.c, data-user.c, conversion.c, debug.c, verify.c, data.c,
decrypt.c, delete.c, assuan-support.c, import.c, engine-gpgsm.c,
data-mem.c, op-support.c, w32-io.c, w32-util.c, data-compat.c: Use
gpg_error_from_syserror instead gpg_error_from_errno, and use
gpg_err_set_errno to set error number.
* setenv.c: Include <gpg-error.h> and define __set_errno to use
gpg_err_set_errno.
* gpgme-tool.c (ARGP_ERR_UNKNOWN): Define to EDEADLOCK (which is
mapped in Windows CE) instead of E2BIG (which is not).
(gt_import_keys): Initialize err.
Diffstat (limited to 'src/assuan-support.c')
-rw-r--r-- | src/assuan-support.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/assuan-support.c b/src/assuan-support.c index 7b2a725d..676874c3 100644 --- a/src/assuan-support.c +++ b/src/assuan-support.c @@ -77,7 +77,7 @@ my_recvmsg (assuan_context_t ctx, assuan_fd_t fd, assuan_msghdr_t msg, int flags) { #ifdef HAVE_W32_SYSTEM - errno = ENOSYS; + gpg_err_set_errno (ENOSYS); return -1; #else return _gpgme_io_recvmsg (fd, msg, flags); @@ -91,7 +91,7 @@ my_sendmsg (assuan_context_t ctx, assuan_fd_t fd, const assuan_msghdr_t msg, int flags) { #ifdef HAVE_W32_SYSTEM - errno = ENOSYS; + gpg_err_set_errno (ENOSYS); return -1; #else return _gpgme_io_sendmsg (fd, msg, flags); @@ -118,7 +118,7 @@ my_spawn (assuan_context_t ctx, pid_t *r_pid, const char *name, if (! name) { - errno = ENOSYS; + gpg_err_set_errno (ENOSYS); return -1; } @@ -203,7 +203,7 @@ my_socketpair (assuan_context_t ctx, int namespace, int style, int protocol, assuan_fd_t filedes[2]) { #ifdef HAVE_W32_SYSTEM - errno = ENOSYS; + gpg_err_set_errno (ENOSYS); return -1; #else /* FIXME: Debug output missing. */ |