mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-29 13:32:33 +02: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
@ -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…
Reference in New Issue
Block a user