Skip to content

Commit cabeae4

Browse files
committed
Merge bitcoin/bitcoin#26809: compat: use STDIN_FILENO over 0
585c672 compat: use STDIN_FILENO over 0 (fanquake) Pull request description: This is already used throughout this file, and is self-documenting. ACKs for top commit: john-moffett: ACK 585c672 achow101: ACK 585c672 hebasto: ACK 585c672, I have reviewed the code and it looks OK, I agree it can be merged. kristapsk: utACK 585c672 aureleoules: ACK 585c672 Tree-SHA512: c0114ae896ba5404be70b804ee9f454d213f1d789c8f5a578c422dd15a308a214e6851fee76c0ec736a212bc86fb33ec17af1b22e5d23422c375ca4458251356
2 parents 196a43e + 585c672 commit cabeae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compat/stdin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ bool StdinReady()
5858
return false;
5959
#else
6060
struct pollfd fds;
61-
fds.fd = 0; /* this is STDIN */
61+
fds.fd = STDIN_FILENO;
6262
fds.events = POLLIN;
6363
return poll(&fds, 1, 0) == 1;
6464
#endif

0 commit comments

Comments
 (0)