summaryrefslogtreecommitdiffstats
path: root/common
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 /common
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 'common')
-rw-r--r--common/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/msg.c b/common/msg.c
index 1b2960b047..6bde6d481d 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -437,8 +437,8 @@ void mp_msg_update_msglevels(struct mpv_global *global)
root->use_terminal = opts->use_terminal;
root->show_time = opts->msg_time;
if (root->use_terminal) {
- root->color = opts->msg_color && isatty(fileno(stdout));
- root->termosd = isatty(fileno(stderr));
+ root->color = opts->msg_color && isatty(STDOUT_FILENO);
+ root->termosd = isatty(STDERR_FILENO);
}
talloc_free(root->msglevels);