summaryrefslogtreecommitdiffstats
path: root/src/query.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-03 03:24:32 +0000
committerDavid Robillard <d@drobilla.net>2006-09-03 03:24:32 +0000
commit133415ab52c297199acb29822fc7ec572fbafa2f (patch)
tree6d684bddede123e2808287aad82c559126ab54df /src/query.c
parent69e52cb83cf0233648695730c81cdc4f7c4f2a00 (diff)
downloadlilv-133415ab52c297199acb29822fc7ec572fbafa2f.tar.gz
lilv-133415ab52c297199acb29822fc7ec572fbafa2f.tar.bz2
lilv-133415ab52c297199acb29822fc7ec572fbafa2f.zip
Warning and documentation fixes.
git-svn-id: http://svn.drobilla.net/lad/libslv2@111 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/query.c b/src/query.c
index 8f3ef40..56903ac 100644
--- a/src/query.c
+++ b/src/query.c
@@ -89,7 +89,7 @@ slv2_query_get_num_results(rasqal_query_results* results, const char* var_name)
size_t result = 0;
while (!rasqal_query_results_finished(results)) {
- if (!strcmp(rasqal_query_results_get_binding_name(results, 0), var_name)) {
+ if (!strcmp((const char*)rasqal_query_results_get_binding_name(results, 0), var_name)) {
++result;
}
rasqal_query_results_next(results);
@@ -112,7 +112,7 @@ slv2_query_get_results(rasqal_query_results* results, const char* var_name)
while (!rasqal_query_results_finished(results)) {
rasqal_literal* literal =
- rasqal_query_results_get_binding_value_by_name(results, var_name);
+ rasqal_query_results_get_binding_value_by_name(results, (const unsigned char*)var_name);
assert(literal != NULL);
// Add value on to the array, reallocing all the way.
@@ -120,7 +120,7 @@ slv2_query_get_results(rasqal_query_results* results, const char* var_name)
// results API. coincidentally.
result->num_values++;
result->values = realloc(result->values, result->num_values * sizeof(char*));
- result->values[result->num_values-1] = strdup(rasqal_literal_as_string(literal));
+ result->values[result->num_values-1] = strdup((const char*)rasqal_literal_as_string(literal));
rasqal_query_results_next(results);
}