summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-12-07 17:14:20 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-12-07 17:14:20 +0100
commite4f35516fbbe54d0a4b26491ce004a4fbdd2130b (patch)
tree2f0096d032011d49d3257337a54da05e231928f0
parent20d1fc132e7226b2c9d313d51c6c56b1c12a7e7b (diff)
downloadmpv-e4f35516fbbe54d0a4b26491ce004a4fbdd2130b.tar.bz2
mpv-e4f35516fbbe54d0a4b26491ce004a4fbdd2130b.tar.xz
stream: fix clang warning
Good clang catches programming errors. `open(2)` takes `int` not `mode_t`.
-rw-r--r--stream/stream_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c
index e72355d387..b0832b7529 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -101,7 +101,7 @@ static int open_f(stream_t *stream, int mode)
};
stream->priv = priv;
- mode_t m = O_CLOEXEC;
+ int m = O_CLOEXEC;
if (mode == STREAM_READ)
m |= O_RDONLY;
else if (mode == STREAM_WRITE)