aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-07-18 05:05:13 +0000
committerNIIBE Yutaka <[email protected]>2023-07-18 05:05:13 +0000
commitae188a3357cf9c90967eabdd304782dea40cd1a1 (patch)
tree71137bb70778572fcff54e3585171bb83908ea8a /agent/command-ssh.c
parentdirmngr,kbk,tools: Fix type casting. (diff)
downloadgnupg-ae188a3357cf9c90967eabdd304782dea40cd1a1.tar.gz
gnupg-ae188a3357cf9c90967eabdd304782dea40cd1a1.zip
agent,build,w32: Fix use of SOCKET.
* configure.ac (HAVE_SOCKET): Detect SOCKET type. * agent/command-ssh.c [HAVE_SOCKET] (start_command_handler_ssh): Use SOCKET to cast. -- GnuPG-bug-id: 6508 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/command-ssh.c')
-rw-r--r--agent/command-ssh.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index ca3993321..0afa24111 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -3952,7 +3952,11 @@ start_command_handler_ssh (ctrl_t ctrl, gnupg_fd_t sock_client)
es_syshd_t syshd;
syshd.type = ES_SYSHD_SOCK;
+#ifdef HAVE_SOCKET
+ syshd.u.sock = (SOCKET)sock_client;
+#else
syshd.u.sock = sock_client;
+#endif
get_client_info (sock_client, &peer_info);
ctrl->client_pid = peer_info.pid;