OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/getbuffer.c versions 1.2 and 1.2.2.1
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/getbuffer.c 1.2 -> 1.2.2.1

--- getbuffer.c  2001/07/09 17:22:03     1.2
+++ getbuffer.c  2001/08/01 09:55:58     1.2.2.1
@@ -32,12 +32,10 @@
     {
     /* Sanity checks. */
 
-    assert(xds != NULL);
-    assert(flag == XDS_GIFT || flag == XDS_LOAN);
-    assert(buffer != NULL);
-    assert(buffer_len != NULL);
-    if (xds == NULL || buffer == NULL || buffer_len == NULL || (flag != XDS_GIFT && flag != XDS_LOAN))
-        return XDS_ERR_INVALID_ARG;
+    xds_check_parameter(xds != NULL);
+    xds_check_parameter(flag == XDS_GIFT || flag == XDS_LOAN);
+    xds_check_parameter(buffer != NULL);
+    xds_check_parameter(buffer_len != NULL);
 
     /* Return the buffer to the caller. */
 

CVSTrac 2.0.1