From e919b5d5b929faf2af96ce0b36d8bc5b55236153 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 7 May 2010 16:56:40 +0000 Subject: 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 --- apps/plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 8a32a159b4..e4480deed1 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -987,8 +987,7 @@ static int open_wrapper(const char* pathname, int flags, ...) { va_list ap; va_start(ap, flags); - int fd; - fd = sim_open(pathname, flags, va_arg(ap, mode_t)); + fd = sim_open(pathname, flags, va_arg(ap, unsigned int)); va_end(ap); } else -- cgit v1.2.3