OSSP CVS Repository

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

ossp-pkg/xds/xds_test_xml.c 1.8 -> 1.9

--- xds_test_xml.c       2002/03/17 10:25:53     1.8
+++ xds_test_xml.c       2003/02/17 12:27:52     1.9
@@ -53,8 +53,7 @@
     size_t i;
 
     /* Encode the values array, then decode it back and compare the numbers. */
-    xds = xds_init(XDS_ENCODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_ENCODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -85,8 +84,7 @@
     }
     xds_destroy(xds);
 
-    xds = xds_init(XDS_DECODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_DECODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -148,8 +146,7 @@
     size_t i;
 
     /* Encode the values array, then decode it back and compare the numbers. */
-    xds = xds_init(XDS_ENCODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_ENCODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -170,8 +167,7 @@
     }
     xds_destroy(xds);
 
-    xds = xds_init(XDS_DECODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_DECODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -226,8 +222,7 @@
     size_t i;
 
     /* Encode the values array, then decode it back and compare the numbers. */
-    xds = xds_init(XDS_ENCODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_ENCODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -248,8 +243,7 @@
     }
     xds_destroy(xds);
 
-    xds = xds_init(XDS_DECODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_DECODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -303,8 +297,7 @@
     size_t i;
 
     /* Encode the values array, then decode it back and compare the numbers. */
-    xds = xds_init(XDS_ENCODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_ENCODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -325,8 +318,7 @@
     }
     xds_destroy(xds);
 
-    xds = xds_init(XDS_DECODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_DECODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -380,8 +372,7 @@
 
     /* Encode the values array, then decode it back and compare the numbers. */
 
-    xds = xds_init(XDS_ENCODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_ENCODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -416,8 +407,7 @@
         }
     xds_destroy(xds);
 
-    xds = xds_init(XDS_DECODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_DECODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -482,8 +472,7 @@
 
     /* Encode the values array, then decode it back and compare the numbers. */
 
-    xds = xds_init(XDS_ENCODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_ENCODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -518,8 +507,7 @@
         }
     xds_destroy(xds);
 
-    xds = xds_init(XDS_DECODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_DECODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -576,8 +564,7 @@
 
     /* Encode the string, then erase the buffer and decode the string back,
        verifying that it hasn't changed. */
-    xds = xds_init(XDS_ENCODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_ENCODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -598,8 +585,7 @@
     }
     xds_destroy(xds);
 
-    xds = xds_init(XDS_DECODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_DECODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -647,8 +633,7 @@
 
     /* Encode the string, then erase the buffer and decode the string back,
        verifying that it hasn't changed. */
-    xds = xds_init(XDS_ENCODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_ENCODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -669,8 +654,7 @@
     }
     xds_destroy(xds);
 
-    xds = xds_init(XDS_DECODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_DECODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -719,8 +703,7 @@
 
     /* Encode the string as octet stream. Then erase the buffer and decode
        the string back, verifying that it hasn't changed. */
-    xds = xds_init(XDS_ENCODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_ENCODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -741,8 +724,7 @@
     }
     xds_destroy(xds);
 
-    xds = xds_init(XDS_DECODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_DECODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -791,8 +773,7 @@
 
     /* Encode the string as octet stream. Then erase the buffer and decode
        the string back, verifying that it hasn't changed. */
-    xds = xds_init(XDS_ENCODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_ENCODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }
@@ -813,8 +794,7 @@
     }
     xds_destroy(xds);
 
-    xds = xds_init(XDS_DECODE);
-    if (xds == NULL) {
+    if (xds_init(&xds, XDS_DECODE) != XDS_OK) {
         printf("Failed to initialize XDS context.\n");
         return 1;
     }

CVSTrac 2.0.1