[tracker] rasqal: Fix compile warning



commit 9968caea9fef754eb4f6d9c0f31443366f86ad40
Author: Jürg Billeter <j bitron ch>
Date:   Thu Jul 16 15:03:05 2009 +0200

    rasqal: Fix compile warning

 src/rasqal/sparql_parser.y |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rasqal/sparql_parser.y b/src/rasqal/sparql_parser.y
index 39d2d77..29034d1 100644
--- a/src/rasqal/sparql_parser.y
+++ b/src/rasqal/sparql_parser.y
@@ -389,7 +389,7 @@ Update: UpdateQuery
     for (idx = 0; idx < raptor_sequence_size(query->prefixes); idx++) {
       rasqal_prefix* p = raptor_sequence_get_at(query->prefixes, idx);
 
-      unsigned char *prefix_string_copy = (unsigned char*)RASQAL_MALLOC(cstring, strlen(p->prefix));
+      unsigned char *prefix_string_copy = (unsigned char*)RASQAL_MALLOC(cstring, strlen((const char*)p->prefix));
       strcpy((char*)prefix_string_copy, (const char*)p->prefix);
 
       rasqal_query_add_prefix(query->next, rasqal_new_prefix(query->world, prefix_string_copy, raptor_uri_copy(p->uri)));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]