summaryrefslogtreecommitdiffstats
path: root/src/instance.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-03 16:43:57 +0000
committerDavid Robillard <d@drobilla.net>2012-08-03 16:43:57 +0000
commit769d980f5ef68b84b8a4fe016eccced4d3b06b49 (patch)
treee697e4aa125a1fbfae858f5ae681721305cb8ae4 /src/instance.c
parent6d856f2c3207fd5acd513d41f72830c29daf07f2 (diff)
downloadsuil-769d980f5ef68b84b8a4fe016eccced4d3b06b49.tar.gz
suil-769d980f5ef68b84b8a4fe016eccced4d3b06b49.tar.bz2
suil-769d980f5ef68b84b8a4fe016eccced4d3b06b49.zip
Fix compilation with MSVC.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4609 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/instance.c')
-rw-r--r--src/instance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/instance.c b/src/instance.c
index 0f9434a..617280e 100644
--- a/src/instance.c
+++ b/src/instance.c
@@ -98,7 +98,7 @@ open_wrapper(SuilHost* host,
+ strlen(module_name)
+ 2;
- char* const path = calloc(path_len, 1);
+ char* const path = (char*)calloc(path_len, 1);
snprintf(path, path_len, "%s%s%s%s%s",
mod_dir, SUIL_DIR_SEP,
SUIL_MODULE_PREFIX, module_name, SUIL_MODULE_EXT);
@@ -184,7 +184,7 @@ suil_instance_new(SuilHost* host,
}
// Create SuilInstance
- SuilInstance* instance = calloc(1, sizeof(struct SuilInstanceImpl));
+ SuilInstance* instance = (SuilInstance*)calloc(1, sizeof(SuilInstance));
if (!instance) {
SUIL_ERRORF("Failed to allocate memory for <%s> instance\n", ui_uri);
dlclose(lib);