diff options
author | David Robillard <d@drobilla.net> | 2011-02-04 05:48:37 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-04 05:48:37 +0000 |
commit | 77a78c6535a62bdadbf780a069aa47a4bfd01805 (patch) | |
tree | 1ef344a592e67a503b83ab92b82d34106283380d /src/pluginuiinstance.c | |
parent | ea4087e0029c4f6c6f80716b50ddf60120598b1b (diff) | |
download | lilv-77a78c6535a62bdadbf780a069aa47a4bfd01805.tar.gz lilv-77a78c6535a62bdadbf780a069aa47a4bfd01805.tar.bz2 lilv-77a78c6535a62bdadbf780a069aa47a4bfd01805.zip |
Fix "ISO C forbids initialization between function pointer and ‘void *’" warnings.
Fix crash when plugins have no required or optional features.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2908 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/pluginuiinstance.c')
-rw-r--r-- | src/pluginuiinstance.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pluginuiinstance.c b/src/pluginuiinstance.c index 7c5611e..1c2cd1c 100644 --- a/src/pluginuiinstance.c +++ b/src/pluginuiinstance.c @@ -59,7 +59,8 @@ slv2_ui_instantiate(SLV2Plugin plugin, return NULL; } - LV2UI_DescriptorFunction df = dlsym(lib, "lv2ui_descriptor"); + LV2UI_DescriptorFunction df = (LV2UI_DescriptorFunction) + slv2_dlfunc(lib, "lv2ui_descriptor"); if (!df) { SLV2_ERRORF("Could not find symbol 'lv2ui_descriptor', " |