mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix disastrous variable shadowing, change casts to unsigned in (cygwin doesn't like mode_t there, and unsigned int should be equally correct) and check the correct bitmask in sim_open().
Should repair filesystem accesses on the sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25881 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9697b37d50
commit
e919b5d5b9
4 changed files with 6 additions and 6 deletions
|
@ -72,7 +72,7 @@ int my_open(const char *file, int flags, ...)
|
|||
{
|
||||
va_list ap;
|
||||
va_start(ap, flags);
|
||||
filearray[fpoint]=rb->open(file, flags, va_arg(ap, mode_t));
|
||||
filearray[fpoint]=rb->open(file, flags, va_arg(ap, unsigned int));
|
||||
va_end(ap);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue