diff options
author | David Robillard <d@drobilla.net> | 2009-06-03 19:41:28 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-06-03 19:41:28 +0000 |
commit | f968fb885441fef1320fabc11f4182d012f4d723 (patch) | |
tree | 117f2aff9d7a505edc368b8c78b48a0e480d596f /src | |
parent | 95dd37f9ce4dd49b539d64db40c8477a6a1e3db7 (diff) | |
download | lilv-f968fb885441fef1320fabc11f4182d012f4d723.tar.gz lilv-f968fb885441fef1320fabc11f4182d012f4d723.tar.bz2 lilv-f968fb885441fef1320fabc11f4182d012f4d723.zip |
Fix warnings.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2082 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/world.c | 9 |
1 files changed, 4 insertions, 5 deletions
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 : <http://lv2plug.in/ns/lv2core#>\n" "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\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); |