Commit b219b338 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: fix open mode signedness

parent b616a490
...@@ -66,7 +66,7 @@ static wchar_t *widen_path (const char *path) ...@@ -66,7 +66,7 @@ static wchar_t *widen_path (const char *path)
int vlc_open (const char *filename, int flags, ...) int vlc_open (const char *filename, int flags, ...)
{ {
unsigned int mode = 0; int mode = 0;
va_list ap; va_list ap;
flags |= O_NOINHERIT; /* O_CLOEXEC */ flags |= O_NOINHERIT; /* O_CLOEXEC */
...@@ -76,7 +76,7 @@ int vlc_open (const char *filename, int flags, ...) ...@@ -76,7 +76,7 @@ int vlc_open (const char *filename, int flags, ...)
va_start (ap, flags); va_start (ap, flags);
if (flags & O_CREAT) if (flags & O_CREAT)
mode = va_arg (ap, unsigned int); mode = va_arg (ap, int);
va_end (ap); va_end (ap);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment