From a1dff86da8ebaab6e154360f538ca9d43a6c4934 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 25 Jun 2014 20:25:28 +0200 Subject: 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. --- agent/gpg-agent.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'agent') 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; -- cgit v1.2.3