diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2010-05-07 16:56:40 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-07 16:56:40 +0000 |
| commit | e919b5d5b929faf2af96ce0b36d8bc5b55236153 (patch) | |
| tree | 85612a9614e2e98cdac5605a4a5e8c519270cc61 /apps/codecs.c | |
| parent | 9697b37d50194c839d930e8532ba9692278f81d4 (diff) | |
| download | rockbox-e919b5d5b929faf2af96ce0b36d8bc5b55236153.zip rockbox-e919b5d5b929faf2af96ce0b36d8bc5b55236153.tar.gz rockbox-e919b5d5b929faf2af96ce0b36d8bc5b55236153.tar.bz2 rockbox-e919b5d5b929faf2af96ce0b36d8bc5b55236153.tar.xz | |
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
Diffstat (limited to 'apps/codecs.c')
| -rw-r--r-- | apps/codecs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs.c b/apps/codecs.c index 4d97baa..46d9223 100644 --- a/apps/codecs.c +++ b/apps/codecs.c @@ -83,7 +83,7 @@ static int open(const char* pathname, int flags, ...) { va_list ap; va_start(ap, flags); - fd = sim_open(pathname, flags, va_arg(ap, mode_t)); + fd = sim_open(pathname, flags, va_arg(ap, unsigned int)); va_end(ap); } else |