diff options
author | David Robillard <d@drobilla.net> | 2012-08-09 01:50:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-09 01:50:07 +0000 |
commit | 1ac0d686b1a540f3ffe5a948f07f53b9a9cdbe5b (patch) | |
tree | 3cc280aae8daa7bf8d64868d1a41976eb845418c /src/world.c | |
parent | 2fdda7eb1b6b5f5582e05c94591a1db44947af18 (diff) | |
download | lilv-1ac0d686b1a540f3ffe5a948f07f53b9a9cdbe5b.tar.gz lilv-1ac0d686b1a540f3ffe5a948f07f53b9a9cdbe5b.tar.bz2 lilv-1ac0d686b1a540f3ffe5a948f07f53b9a9cdbe5b.zip |
Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4631 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/world.c b/src/world.c index 9ebdaac..96cb247 100644 --- a/src/world.c +++ b/src/world.c @@ -702,12 +702,10 @@ lilv_world_load_plugin_classes(LilvWorld* world) const uint8_t* label = sord_node_get_string(label_node); sord_iter_free(labels); - LilvPluginClasses* classes = world->plugin_classes; - LilvPluginClass* pclass = lilv_plugin_class_new( + LilvPluginClass* pclass = lilv_plugin_class_new( world, parent_node, class_node, (const char*)label); - if (pclass) { - zix_tree_insert((ZixTree*)classes, pclass, NULL); + zix_tree_insert(world->plugin_classes, pclass, NULL); } } sord_iter_free(classes); |