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:
parent
2ec97825e7
commit
585c672212
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue