--- xds.c 2001/08/12 11:31:45 1.6
+++ xds.c 2001/08/13 19:48:02 1.7
@@ -164,7 +164,7 @@
return XDS_OK;
/* Find the correct capacity. */
- size = (*array_capacity != 0) ? (*array_capacity * 2) : initial_capacity;
+ size = (*array_capacity != 0) ? (*array_capacity * 2) : initial_capacity;
while (size < new_capacity)
size *= 2;
@@ -226,7 +226,7 @@
return XDS_ERR_NO_MEM;
/* Search engines for the entry. */
- if (xds_find_engine(xds->engines, xds->engines_len, name, &pos)) {
+ if (xds_find_engine(xds->engines, xds->engines_len, name, &pos)) {
/* overwrite existing entry */
free(xds->engines[pos].name);
}
@@ -322,10 +322,10 @@
return XDS_ERR_INVALID_MODE;
/* Ensure we have a buffer allocated ready for use. */
- if (xds->buffer == NULL) {
+ if (xds->buffer == NULL) {
/* allocate a new buffer */
rc = xds_set_capacity((void **)&xds->buffer, &xds->buffer_capacity,
- XDS_INITIAL_BUFFER_CAPACITY, sizeof (char),
+ XDS_INITIAL_BUFFER_CAPACITY, sizeof (char),
XDS_INITIAL_BUFFER_CAPACITY);
assert(rc == XDS_OK || rc == XDS_ERR_NO_MEM);
if (rc != XDS_OK)
@@ -352,7 +352,7 @@
size_t used_buffer_size;
size_t pos;
- if (xds_find_engine(xds->engines, xds->engines_len, name, &pos)
+ if (xds_find_engine(xds->engines, xds->engines_len, name, &pos)
== XDS_FALSE) {
rc = XDS_ERR_UNKNOWN_ENGINE;
goto leave;
|