hi!

so, i noticed that librdf_stream_get_context returns a void*... why?
imho it should return librdf_node* instead.
patch is attached.

michael

--
"A well-written program is its own Heaven;
 a poorly-written program is its own Hell." -- The Tao of Programming

--- redland-1.0.7/librdf/rdf_stream.c	Mon Dec 24 00:23:10 2007
+++ redland-1.0.7-contextdup/librdf/rdf_stream.c	Fri May  2 12:45:21 2008
@@ -288,8 +288,8 @@
  * 
  * Return value: The context node or NULL if the stream has finished.
  **/
-void*
-librdf_stream_get_context(librdf_stream* stream) 
+librdf_node*
+librdf_stream_get_context(librdf_stream* stream)
 {
   if(stream->is_finished)
     return NULL;
@@ -297,7 +297,7 @@
   if(!librdf_stream_update_current_statement(stream))
     return NULL;
 
-  return stream->get_method(stream->context, 
+  return (librdf_node*) stream->get_method(stream->context,
                             LIBRDF_STREAM_GET_METHOD_GET_CONTEXT);
 }
 
_______________________________________________
redland-dev mailing list
[email protected]
http://lists.librdf.org/mailman/listinfo/redland-dev

Reply via email to