From 0d4585b28ffcac1b62ed37cee2c34de0515df468 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 9 Sep 2010 16:17:21 +0000 Subject: Extend lc_open() to also being able to load overlay plugins. For this it needs to look at the plugin header. Since lc_open() doesn't know it's a plugin, the header needs to be changed slightly to include the new lc_header (which needs to be the first element in plugin_header so it can be casted savely). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28054 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/common/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uisimulator') diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c index 56f1339fbc..3591905e32 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c @@ -526,7 +526,7 @@ int sim_fsync(int fd) #ifndef __PCTOOL__ -void *lc_open(const char *filename, char *buf, size_t buf_size) +void *lc_open(const char *filename, unsigned char *buf, size_t buf_size) { const char *sim_path = get_sim_pathname(filename); void *handle = _lc_open(UTF8_TO_OS(sim_path), buf, buf_size); -- cgit