diff options
author | fanquake <fanquake@gmail.com> | 2023-01-04 12:00:25 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-01-04 12:00:25 +0000 |
commit | 585c6722128537f772043ef4c87238e283669b8a (patch) | |
tree | b2375e004598b46d583d697c208d1df3c1890638 /src/compat | |
parent | 2ec97825e70882262ee2b7d53dc1def788a60162 (diff) | |
download | bitcoin-585c6722128537f772043ef4c87238e283669b8a.tar.xz |
compat: use STDIN_FILENO over 0
This is already used throughout this file, and is self-documenting.
Diffstat (limited to 'src/compat')
-rw-r--r-- | src/compat/stdin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/stdin.cpp b/src/compat/stdin.cpp index 4e00bbf450..c11763f68f 100644 --- a/src/compat/stdin.cpp +++ b/src/compat/stdin.cpp @@ -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 |