From 26ddd2ade551d347794da9237f0a2a55ff88f9f0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 29 Jan 2011 18:14:16 +0000 Subject: Use uint8_t instead of the horribly verbose `unsigned char'. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2852 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/world.c') diff --git a/src/world.c b/src/world.c index b1e55fa..be1f1de 100644 --- a/src/world.c +++ b/src/world.c @@ -208,7 +208,7 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) } librdf_uri* manifest_uri = librdf_new_uri_relative_to_base( - bundle_uri->val.uri_val, (const unsigned char*)"manifest.ttl"); + bundle_uri->val.uri_val, (const uint8_t*)"manifest.ttl"); /* Parse the manifest into a temporary model */ librdf_storage* manifest_storage = slv2_world_new_storage(world); @@ -222,7 +222,7 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) typedef void* LV2_Dyn_Manifest_Handle; LV2_Dyn_Manifest_Handle handle = NULL; - const unsigned char* const query_str = (const unsigned char* const) + const uint8_t* const query_str = (const uint8_t* const) "PREFIX : \n" "PREFIX dynman: \n" "SELECT DISTINCT ?dynman ?binary WHERE {\n" @@ -238,8 +238,8 @@ slv2_world_load_bundle(SLV2World world, SLV2Value bundle_uri) if (librdf_node_get_type(binary_node) != LIBRDF_NODE_TYPE_RESOURCE) continue; - const unsigned char* lib_uri = librdf_uri_as_string(librdf_node_get_uri(binary_node)); - const char* lib_path = slv2_uri_to_path((const char*)lib_uri); + const uint8_t* lib_uri = librdf_uri_as_string(librdf_node_get_uri(binary_node)); + const char* lib_path = slv2_uri_to_path((const char*)lib_uri); if (!lib_path) continue; @@ -489,7 +489,7 @@ slv2_world_load_plugin_classes(SLV2World world) // than the ontology (ie classes which aren't LV2 plugin_classes), it // currently loads things that aren't actually plugin classes - unsigned char* query_string = (unsigned char*) + uint8_t* query_string = (uint8_t*) "PREFIX : \n" "PREFIX rdfs: \n" "SELECT DISTINCT ?class ?parent ?label WHERE {\n" @@ -625,7 +625,7 @@ slv2_world_load_all(SLV2World world) slv2_world_load_plugin_classes(world); // Find all plugins and associated data files - const unsigned char* query_string = (unsigned char*) + const uint8_t* query_string = (uint8_t*) "PREFIX : \n" "PREFIX rdfs: \n" "PREFIX slv2: \n" -- cgit v1.2.1