Home GnuPG
Diffusion GnuPG ea1935252e28

commond: Introduce FD2NUM to express conversion to number of fds.

Description

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: T6598
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jul 18 2023, 7:43 AM
Parents
rG521ec40aea89: common,w32: Fix FD2INT macro.
Branches
Unknown
Tags
Unknown
Tasks
T6598: Fix FD2INT for 64-bit Windows