[vlc-commits] Win32: fix open mode signedness
Rémi Denis-Courmont
git at videolan.org
Fri Sep 21 09:19:12 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Sep 21 10:19:02 2012 +0300| [b219b3382d8cf28b0b70ada9089b2cf1ac53fa28] | committer: Rémi Denis-Courmont
Win32: fix open mode signedness
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b219b3382d8cf28b0b70ada9089b2cf1ac53fa28
---
src/win32/filesystem.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/win32/filesystem.c b/src/win32/filesystem.c
index a9d0809..d071afd 100644
--- a/src/win32/filesystem.c
+++ b/src/win32/filesystem.c
@@ -66,7 +66,7 @@ static wchar_t *widen_path (const char *path)
int vlc_open (const char *filename, int flags, ...)
{
- unsigned int mode = 0;
+ int mode = 0;
va_list ap;
flags |= O_NOINHERIT; /* O_CLOEXEC */
@@ -76,7 +76,7 @@ int vlc_open (const char *filename, int flags, ...)
va_start (ap, flags);
if (flags & O_CREAT)
- mode = va_arg (ap, unsigned int);
+ mode = va_arg (ap, int);
va_end (ap);
/*
More information about the vlc-commits
mailing list