Skip to content

Commit 585c672

Browse files
committed
compat: use STDIN_FILENO over 0
This is already used throughout this file, and is self-documenting.
1 parent 2ec9782 commit 585c672

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)