diff options
author | David Robillard <d@drobilla.net> | 2011-02-04 01:57:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-04 01:57:59 +0000 |
commit | e17e2794be39b9d1438159822e7c5e75e0638f50 (patch) | |
tree | 682feebbbbee5673d8d5532de5be8943863ee97f /src/plugininstance.c | |
parent | 5467699b799690f3b4f98a78c316668b6871b935 (diff) | |
download | lilv-e17e2794be39b9d1438159822e7c5e75e0638f50.tar.gz lilv-e17e2794be39b9d1438159822e7c5e75e0638f50.tar.bz2 lilv-e17e2794be39b9d1438159822e7c5e75e0638f50.zip |
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2900 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/plugininstance.c')
-rw-r--r-- | src/plugininstance.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugininstance.c b/src/plugininstance.c index 8287568..9d1a2b8 100644 --- a/src/plugininstance.c +++ b/src/plugininstance.c @@ -69,10 +69,8 @@ slv2_plugin_instantiate(SLV2Plugin plugin, const char* bundle_path = slv2_uri_to_path(slv2_value_as_uri( slv2_plugin_get_bundle_uri(plugin))); - for (uint32_t i=0; 1; ++i) { - + for (uint32_t i = 0; true; ++i) { const LV2_Descriptor* ld = df(i); - if (!ld) { SLV2_ERRORF("Did not find plugin %s in %s\n", slv2_value_as_uri(slv2_plugin_get_uri(plugin)), lib_path); @@ -136,7 +134,7 @@ slv2_plugin_instantiate(SLV2Plugin plugin, } // "Connect" all ports to NULL (catches bugs) - for (uint32_t i=0; i < slv2_plugin_get_num_ports(plugin); ++i) + for (uint32_t i = 0; i < slv2_plugin_get_num_ports(plugin); ++i) result->lv2_descriptor->connect_port(result->lv2_handle, i, NULL); } |