From e4f35516fbbe54d0a4b26491ce004a4fbdd2130b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 7 Dec 2013 17:14:20 +0100 Subject: stream: fix clang warning Good clang catches programming errors. `open(2)` takes `int` not `mode_t`. --- stream/stream_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream/stream_file.c') 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) -- cgit v1.2.3