OSSP CVS Repository

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

ossp-pkg/xds/xml-encode-double.c 1.1 -> 1.2

--- xml-encode-double.c  2001/07/23 16:33:03     1.1
+++ xml-encode-double.c  2001/07/24 13:04:43     1.2
@@ -31,25 +31,5 @@
 
 int xml_encode_double(xds_t* xds, void* engine_context, void* buffer, size_t buffer_size, va_list* args)
     {
-    int rc;
-    xds_double_t value;
-
-    /* Consistency checks. */
-
-    assert(xds != NULL);
-    assert(buffer != NULL);
-    assert(buffer_size != 0);
-    assert(args != NULL);
-    if (xds == NULL || buffer == NULL || buffer_size == 0 || args == NULL)
-        return XDS_ERR_INVALID_ARG;
-
-    /* Format value into buffer. */
-
-    value = va_arg(*args, xds_double_t);
-    rc = snprintf(buffer, buffer_size, "<double>%E</double>", value);
-    if (rc < 0)
-        return buffer_size*2;
-    assert(rc >= 15);
-
-    return rc;
+    return -1;
     }

CVSTrac 2.0.1