mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-12 11:19:08 -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;
|
return false;
|
||||||
#else
|
#else
|
||||||
struct pollfd fds;
|
struct pollfd fds;
|
||||||
fds.fd = 0; /* this is STDIN */
|
fds.fd = STDIN_FILENO;
|
||||||
fds.events = POLLIN;
|
fds.events = POLLIN;
|
||||||
return poll(&fds, 1, 0) == 1;
|
return poll(&fds, 1, 0) == 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue