[vlc-commits] posix: remove non-standard flag

Rémi Denis-Courmont git at videolan.org
Mon Feb 12 22:57:24 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Feb 12 23:57:04 2018 +0200| [d3f1e231a06de02de2a547a6b7a5f74fbad5ff37] | committer: Rémi Denis-Courmont

posix: remove non-standard flag

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d3f1e231a06de02de2a547a6b7a5f74fbad5ff37
---

 src/posix/filesystem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/posix/filesystem.c b/src/posix/filesystem.c
index f21a646dca..95f108bee9 100644
--- a/src/posix/filesystem.c
+++ b/src/posix/filesystem.c
@@ -56,7 +56,7 @@ int vlc_open (const char *filename, int flags, ...)
     va_list ap;
 
     va_start (ap, flags);
-    if (flags & (O_CREAT|O_TMPFILE))
+    if (flags & O_CREAT)
         mode = va_arg (ap, unsigned int);
     va_end (ap);
 
@@ -76,7 +76,7 @@ int vlc_openat (int dir, const char *filename, int flags, ...)
     va_list ap;
 
     va_start (ap, flags);
-    if (flags & (O_CREAT|O_TMPFILE))
+    if (flags & O_CREAT)
         mode = va_arg (ap, unsigned int);
     va_end (ap);
 



More information about the vlc-commits mailing list