diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-12-07 17:14:20 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-12-07 17:14:20 +0100 |
commit | e4f35516fbbe54d0a4b26491ce004a4fbdd2130b (patch) | |
tree | 2f0096d032011d49d3257337a54da05e231928f0 /stream/stream_file.c | |
parent | 20d1fc132e7226b2c9d313d51c6c56b1c12a7e7b (diff) | |
download | mpv-e4f35516fbbe54d0a4b26491ce004a4fbdd2130b.tar.bz2 mpv-e4f35516fbbe54d0a4b26491ce004a4fbdd2130b.tar.xz |
stream: fix clang warning
Good clang catches programming errors. `open(2)` takes `int` not `mode_t`.
Diffstat (limited to 'stream/stream_file.c')
-rw-r--r-- | stream/stream_file.c | 2 |
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) |