aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-06-25 18:25:28 +0000
committerWerner Koch <[email protected]>2014-06-27 17:19:24 +0000
commita1dff86da8ebaab6e154360f538ca9d43a6c4934 (patch)
tree6c56dcaf12e1db60e82753b0b47116ff126ab5a6
parentdirmngr: Use the homedir based socket also under W32. (diff)
downloadgnupg-a1dff86da8ebaab6e154360f538ca9d43a6c4934.tar.gz
gnupg-a1dff86da8ebaab6e154360f538ca9d43a6c4934.zip
agent: Adjust for changed npth_eselect under W32.
* agent/gpg-agent.c (handle_connections) [W32]: Make events_set an unsigned int to match the changed prototype.
-rw-r--r--agent/gpg-agent.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 096d05707..3febaf841 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -2120,7 +2120,7 @@ handle_connections (gnupg_fd_t listen_fd, gnupg_fd_t listen_fd_ssh)
struct timespec timeout;
#ifdef HAVE_W32_SYSTEM
HANDLE events[2];
- int events_set;
+ unsigned int events_set;
#endif
ret = npth_attr_init(&tattr);
@@ -2219,7 +2219,6 @@ handle_connections (gnupg_fd_t listen_fd, gnupg_fd_t listen_fd_ssh)
handle_signal (signo);
}
#else
- events_set = 0;
ret = npth_eselect (nfd+1, &read_fdset, NULL, NULL, &timeout,
events, &events_set);
saved_errno = errno;