From 7c0a5698ebc2295dc3c1c0c0912684f1794f4afd Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 28 Aug 2014 00:22:13 -0400 Subject: posix: use STD*_FILENO constants Rather than "magic" numbers, use meaningful constant names provided by unistd.h. --- input/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input/pipe.c') diff --git a/input/pipe.c b/input/pipe.c index 3740c22168..59f6a64c2b 100644 --- a/input/pipe.c +++ b/input/pipe.c @@ -41,7 +41,7 @@ static void *reader_thread(void *ctx) int fd = -1; bool close_fd = true; if (strcmp(p->filename, "/dev/stdin") == 0) { // mainly for win32 - fd = fileno(stdin); + fd = STDIN_FILENO; close_fd = false; } if (fd < 0) -- cgit v1.2.3