OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/xdr-encode-uint32.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-encode-uint32.c 1.3.2.2 -> 1.3.2.3

--- xdr-encode-uint32.c  2001/08/01 13:26:29     1.3.2.2
+++ xdr-encode-uint32.c  2001/08/01 14:38:07     1.3.2.3
@@ -33,21 +33,7 @@
     {
     xds_uint32_t value;
 
-    /* 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 4 bytes in the buffer to format our parameter. If we
-       don't have them, return an overflow error. */
-
-    if (buffer_size < 4)
-        return XDS_ERR_OVERFLOW;
-    else
-        *used_buffer_size = 4;
+    xds_init_encoding_engine(4);
 
     /* Get value and format it into the buffer. */
 

CVSTrac 2.0.1