OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/regression-tests/xds-mystruct.c versions 1.5 and 1.5.2.1
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/regression-tests/xds-mystruct.c 1.5 -> 1.5.2.1

--- xds-mystruct.c       2001/07/24 15:44:18     1.5
+++ xds-mystruct.c       2001/08/01 11:27:20     1.5.2.1
@@ -37,7 +37,9 @@
     xds_uint32_t  positive;
     };
 
-static int encode_mystruct_engine(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args)
+static int encode_mystruct_engine(xds_t* xds, void* engine_context,
+                                  void* buffer, size_t buffer_size, size_t* used_buffer_size,
+                                  va_list* args)
     {
     int rc;
     struct mystruct* ms;
@@ -45,6 +47,7 @@
     assert(xds != NULL);
     assert(buffer != NULL);
     assert(buffer_size != 0);
+    assert(used_buffer_size != NULL);
     assert(args != NULL);
 
     ms = va_arg(*args, struct mystruct*);
@@ -55,7 +58,9 @@
         return rc;
     }
 
-static int decode_mystruct_engine(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args)
+static int decode_mystruct_engine(xds_t* xds, void* engine_context,
+                                  void* buffer, size_t buffer_size, size_t* used_buffer_size,
+                                  va_list* args)
     {
     int rc;
     struct mystruct* ms;
@@ -63,6 +68,7 @@
     assert(xds != NULL);
     assert(buffer != NULL);
     assert(buffer_size != 0);
+    assert(used_buffer_size != NULL);
     assert(args != NULL);
 
     ms = va_arg(*args, struct mystruct*);

CVSTrac 2.0.1