aboutsummaryrefslogtreecommitdiff
path: root/src/compat
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-01-04 12:00:25 +0000
committerfanquake <fanquake@gmail.com>2023-01-04 12:00:25 +0000
commit585c6722128537f772043ef4c87238e283669b8a (patch)
treeb2375e004598b46d583d697c208d1df3c1890638 /src/compat
parent2ec97825e70882262ee2b7d53dc1def788a60162 (diff)
downloadbitcoin-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.cpp2
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