From f968fb885441fef1320fabc11f4182d012f4d723 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 Jun 2009 19:41:28 +0000 Subject: Fix warnings. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2082 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/world.c') diff --git a/src/world.c b/src/world.c index ae9d57f..ec1a9a0 100644 --- a/src/world.c +++ b/src/world.c @@ -430,7 +430,7 @@ void slv2_world_load_plugin_classes(SLV2World world) { // FIXME: This will need to be a bit more clever when more data is around - // then the ontology (ie classes which aren't LV2 plugin_classes) + // than the ontology (ie classes which aren't LV2 plugin_classes) // FIXME: This loads things that aren't plugin categories @@ -438,9 +438,8 @@ slv2_world_load_plugin_classes(SLV2World world) "PREFIX : \n" "PREFIX rdfs: \n" "SELECT DISTINCT ?class ?parent ?label WHERE {\n" - //" ?plugin a ?class .\n" " ?class a rdfs:Class; rdfs:subClassOf ?parent; rdfs:label ?label\n" - "}\n"; // ORDER BY ?class\n"; + "}\n"; librdf_query* q = librdf_new_query(world->world, "sparql", NULL, query_string, NULL); @@ -562,14 +561,14 @@ slv2_world_load_all(SLV2World world) // If the URI is > the last in the list, just append (avoid sort) if (strcmp( slv2_value_as_string(slv2_plugin_get_uri(prev)), - librdf_uri_as_string(plugin_uri)) < 0) { + (const char*)librdf_uri_as_string(plugin_uri)) < 0) { plugin = slv2_plugin_new(world, uri, bundle_uri); raptor_sequence_push(world->plugins, plugin); // If the URI is < the first in the list, just prepend (avoid sort) } else if (strcmp( slv2_value_as_string(slv2_plugin_get_uri(first)), - librdf_uri_as_string(plugin_uri)) > 0) { + (const char*)librdf_uri_as_string(plugin_uri)) > 0) { plugin = slv2_plugin_new(world, uri, bundle_uri); raptor_sequence_shift(world->plugins, plugin); -- cgit v1.2.1