Author: dajobe
Date: Fri Jan 18 07:04:01 2008
New Revision: 13617

URL: http://svn.librdf.org/view?rev=3D13617&view=3Drev
Log:
(main): Use raptor_iostream_tell rather than deprecated
raptor_iostream_get_bytes_written_count

Modified:
    raptor/trunk/src/raptor_xml_writer.c

Modified: raptor/trunk/src/raptor_xml_writer.c
URL: http://svn.librdf.org/view/raptor/trunk/src/raptor_xml_writer.c?rev=3D=
13617&r1=3D13616&r2=3D13617&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- raptor/trunk/src/raptor_xml_writer.c (original)
+++ raptor/trunk/src/raptor_xml_writer.c Fri Jan 18 07:04:01 2008
@@ -1025,7 +1025,7 @@
   raptor_uri* base_uri;
   raptor_qname* el_name;
   raptor_xml_element *element;
-  size_t count;
+  unsigned long offset;
   raptor_qname **attrs;
   raptor_uri* base_uri_copy=3DNULL;
 =

@@ -1114,16 +1114,16 @@
   raptor_free_uri(base_uri);
 =

   =

-  count=3Draptor_iostream_get_bytes_written_count(iostr);
+  offset=3Draptor_iostream_tell(iostr);
 =

 #if RAPTOR_DEBUG > 1
   fprintf(stderr, "%s: Freeing iostream\n", program);
 #endif
   raptor_free_iostream(iostr);
 =

-  if(count !=3D OUT_BYTES_COUNT) {
+  if(offset !=3D OUT_BYTES_COUNT) {
     fprintf(stderr, "%s: I/O stream wrote %d bytes, expected %d\n", progra=
m,
-            (int)count, (int)OUT_BYTES_COUNT);
+            (int)offset, (int)OUT_BYTES_COUNT);
     fputs("[[", stderr);
     (void)fwrite(string, 1, string_len, stderr);
     fputs("]]\n", stderr);
@@ -1135,8 +1135,8 @@
     return 1;
   }
   string_len=3Dstrlen((const char*)string);
-  if(string_len !=3D count) {
-    fprintf(stderr, "%s: I/O stream created a string length %d, expected %=
d\n", program, (int)string_len, (int)count);
+  if(string_len !=3D offset) {
+    fprintf(stderr, "%s: I/O stream created a string length %d, expected %=
d\n", program, (int)string_len, (int)offset);
     return 1;
   }
 =



_______________________________________________
redland-commits mailing list
[email protected]
http://lists.librdf.org/mailman/listinfo/redland-commits

Reply via email to