OSSP CVS Repository

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

ossp-pkg/xds/setbuffer.c 1.6 -> 1.6.2.1

--- setbuffer.c  2001/07/31 06:33:55     1.6
+++ setbuffer.c  2001/08/01 09:55:58     1.6.2.1
@@ -32,12 +32,9 @@
     {
     /* Sanity checks. */
 
-    assert(xds != NULL);
-    assert(flag == XDS_GIFT || flag == XDS_LOAN);
-    assert((buffer != NULL && buffer_len != 0) || flag == XDS_GIFT);
-    if (xds == NULL || (flag != XDS_GIFT && flag != XDS_LOAN) ||
-        (flag == XDS_LOAN && (buffer == NULL || buffer_len == 0)))
-        return XDS_ERR_INVALID_ARG;
+    xds_check_parameter(xds != NULL);
+    xds_check_parameter(flag == XDS_GIFT || flag == XDS_LOAN);
+    xds_check_parameter((buffer != NULL && buffer_len != 0) || flag == XDS_GIFT);
 
     /* Free the old buffer if there is one. */
 

CVSTrac 2.0.1