From 585c6722128537f772043ef4c87238e283669b8a Mon Sep 17 00:00:00 2001 From: fanquake Date: Wed, 4 Jan 2023 12:00:25 +0000 Subject: [PATCH] compat: use STDIN_FILENO over 0 This is already used throughout this file, and is self-documenting. --- src/compat/stdin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compat/stdin.cpp b/src/compat/stdin.cpp index 4e00bbf4507..c11763f68fd 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