diff options
author | NIIBE Yutaka <[email protected]> | 2023-07-18 05:43:36 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-07-18 05:43:36 +0000 |
commit | ea1935252e287b63f04c6d460cfb85e4e5efe379 (patch) | |
tree | 926cd14224f7058027cebe985f354868f66f8969 /tpm2d/tpm2daemon.c | |
parent | common,w32: Fix FD2INT macro. (diff) | |
download | gnupg-ea1935252e287b63f04c6d460cfb85e4e5efe379.tar.gz gnupg-ea1935252e287b63f04c6d460cfb85e4e5efe379.zip |
commond: Introduce FD2NUM to express conversion to number of fds.
* common/sysutils.h (FD2NUM): New.
* agent/call-pinentry.c (watch_sock): Use FD2NUM.
* agent/gpg-agent.c (handle_connections): Likewise.
* dirmngr/dirmngr.c (handle_connections): Likewise.
* dirmngr/http.c (connect_with_timeout): Likewise.
* kbx/keyboxd.c (handle_connections): Likewise.
* scd/scdaemon.c (handle_connections): Likewise.
* tpm2d/tpm2daemon.c (handle_connections): Likewise.
--
GnuPG-bug-id: 6598
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tpm2d/tpm2daemon.c')
-rw-r--r-- | tpm2d/tpm2daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpm2d/tpm2daemon.c b/tpm2d/tpm2daemon.c index 3246cfc9a..383421c30 100644 --- a/tpm2d/tpm2daemon.c +++ b/tpm2d/tpm2daemon.c @@ -1154,7 +1154,7 @@ handle_connections (gnupg_fd_t listen_fd) if (listen_fd != GNUPG_INVALID_FD) { FD_SET (FD2INT (listen_fd), &fdset); - nfd = FD2INT (listen_fd); + nfd = FD2NUM (listen_fd); } for (;;) |