summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/node.c4
-rw-r--r--src/plugin.c2
-rw-r--r--src/state.c2
-rw-r--r--src/world.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/src/node.c b/src/node.c
index 2b160f3..5605177 100644
--- a/src/node.c
+++ b/src/node.c
@@ -108,13 +108,13 @@ lilv_node_new_from_node(LilvWorld* world, const SordNode* node)
switch (sord_node_get_type(node)) {
case SORD_URI:
result = (LilvNode*)malloc(sizeof(LilvNode));
- result->world = (LilvWorld*)world;
+ result->world = world;
result->type = LILV_VALUE_URI;
result->node = sord_node_copy(node);
break;
case SORD_BLANK:
result = (LilvNode*)malloc(sizeof(LilvNode));
- result->world = (LilvWorld*)world;
+ result->world = world;
result->type = LILV_VALUE_BLANK;
result->node = sord_node_copy(node);
break;
diff --git a/src/plugin.c b/src/plugin.c
index e8956fb..09dbf3f 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -432,7 +432,7 @@ lilv_plugin_get_class(const LilvPlugin* const_p)
p->world->plugin_classes, klass);
if (pclass) {
- ((LilvPlugin*)p)->plugin_class = pclass;
+ p->plugin_class = pclass;
lilv_node_free(klass);
break;
}
diff --git a/src/state.c b/src/state.c
index 86b4bfc..7fe52cc 100644
--- a/src/state.c
+++ b/src/state.c
@@ -221,7 +221,7 @@ abstract_path(LV2_State_Map_Path_Handle handle,
LilvState* state = (LilvState*)handle;
char* path = NULL;
char* real_path = lilv_realpath(abs_path);
- const PathMap key = { (char*)real_path, NULL };
+ const PathMap key = { real_path, NULL };
ZixTreeIter* iter = NULL;
if (abs_path[0] == '\0') {
diff --git a/src/world.c b/src/world.c
index 80aad28..fb3f7e0 100644
--- a/src/world.c
+++ b/src/world.c
@@ -151,7 +151,7 @@ lilv_world_free(LilvWorld* world)
zix_tree_free((ZixTree*)world->loaded_files);
world->loaded_files = NULL;
- zix_tree_free((ZixTree*)world->libs);
+ zix_tree_free(world->libs);
world->libs = NULL;
zix_tree_free((ZixTree*)world->plugin_classes);
@@ -612,7 +612,7 @@ lilv_world_get_manifest_uri(LilvWorld* world, const LilvNode* bundle_uri)
{
SerdNode manifest_uri = lilv_new_uri_relative_to_base(
(const uint8_t*)"manifest.ttl",
- (const uint8_t*)sord_node_get_string(bundle_uri->node));
+ sord_node_get_string(bundle_uri->node));
LilvNode* manifest = lilv_new_uri(world, (const char*)manifest_uri.buf);
serd_node_free(&manifest_uri);
return manifest;