diff options
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 2f54c0d314..28d443321f 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -97,7 +97,7 @@ char *plugin_get_current_filename(void); | |||
97 | /* Some wrappers used to monitor open and close and detect leaks*/ | 97 | /* Some wrappers used to monitor open and close and detect leaks*/ |
98 | static int open_wrapper(const char* pathname, int flags); | 98 | static int open_wrapper(const char* pathname, int flags); |
99 | static int close_wrapper(int fd); | 99 | static int close_wrapper(int fd); |
100 | static int creat_wrapper(const char *pathname); | 100 | static int creat_wrapper(const char *pathname, mode_t mode); |
101 | #endif | 101 | #endif |
102 | 102 | ||
103 | static const struct plugin_api rockbox_api = { | 103 | static const struct plugin_api rockbox_api = { |
@@ -1002,9 +1002,9 @@ static int close_wrapper(int fd) | |||
1002 | return PREFIX(close)(fd); | 1002 | return PREFIX(close)(fd); |
1003 | } | 1003 | } |
1004 | 1004 | ||
1005 | static int creat_wrapper(const char *pathname) | 1005 | static int creat_wrapper(const char *pathname, mode_t mode) |
1006 | { | 1006 | { |
1007 | int fd = PREFIX(creat)(pathname); | 1007 | int fd = PREFIX(creat)(pathname, mode); |
1008 | 1008 | ||
1009 | if(fd >= 0) | 1009 | if(fd >= 0) |
1010 | open_files |= (1<<fd); | 1010 | open_files |= (1<<fd); |