OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/xdr-decode-int64.c versions 1.3.2.2 and 1.3.2.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/xdr-decode-int64.c 1.3.2.2 -> 1.3.2.3

--- xdr-decode-int64.c   2001/08/01 13:26:29     1.3.2.2
+++ xdr-decode-int64.c   2001/08/01 14:38:07     1.3.2.3
@@ -34,26 +34,12 @@
     xds_int64_t*  value;
     xds_uint64_t  tmp;
 
-    /* Consistency checks. */
-
-    xds_check_parameter(xds != NULL);
-    xds_check_parameter(buffer != NULL);
-    xds_check_parameter(buffer_size != 0);
-    xds_check_parameter(used_buffer_size != NULL);
-    xds_check_parameter(args != NULL);
-
-    /* We need 8 bytes in the buffer to format our parameter. If we
-       don't have them, return an underflow error. */
-
-    if (buffer_size < 8)
-        return XDS_ERR_UNDERFLOW;
-    else
-        *used_buffer_size = 8;
+    xds_init_decoding_engine(8);
 
     /* Get value and format it into the buffer. */
 
     value = va_arg(*args, xds_int64_t*);
-    assert(value != NULL);
+    xds_check_parameter(value != NULL);
 
     if (((xds_uint8_t*)buffer)[0] & 0x80)
         {                       /* negative number */

CVSTrac 2.0.1