summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2014-08-28 00:22:13 -0400
committerwm4 <wm4@nowhere>2014-08-28 12:03:17 +0200
commit7c0a5698ebc2295dc3c1c0c0912684f1794f4afd (patch)
tree5a6a15d36863cf46f690a34cf18d1484e3567308 /input
parent2a44e2d1b2633bbd85a3785999305a6cccdfab68 (diff)
downloadmpv-7c0a5698ebc2295dc3c1c0c0912684f1794f4afd.tar.bz2
mpv-7c0a5698ebc2295dc3c1c0c0912684f1794f4afd.tar.xz
posix: use STD*_FILENO constants
Rather than "magic" numbers, use meaningful constant names provided by unistd.h.
Diffstat (limited to 'input')
-rw-r--r--input/pipe.c2
1 files changed, 1 insertions, 1 deletions
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)