0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

compat: use STDIN_FILENO over 0

This is already used throughout this file, and is self-documenting.
This commit is contained in:
fanquake 2023-01-04 12:00:25 +00:00
parent 2ec97825e7
commit 585c672212
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -58,7 +58,7 @@ bool StdinReady()
return false;
#else
struct pollfd fds;
fds.fd = 0; /* this is STDIN */
fds.fd = STDIN_FILENO;
fds.events = POLLIN;
return poll(&fds, 1, 0) == 1;
#endif