--- vencode.c 2001/07/09 17:36:33 1.3
+++ vencode.c 2001/07/09 17:44:29 1.4
@@ -53,11 +53,11 @@
if (xds->buffer == NULL)
{ /* allocate a new buffer */
- int rc = xds_set_capacity((void**)&xds->buffer,
- &xds->buffer_capacity,
- XDS_INITIAL_BUFFER_CAPACITY,
- sizeof(char),
- XDS_INITIAL_BUFFER_CAPACITY);
+ rc = xds_set_capacity((void**)&xds->buffer,
+ &xds->buffer_capacity,
+ XDS_INITIAL_BUFFER_CAPACITY,
+ sizeof(char),
+ XDS_INITIAL_BUFFER_CAPACITY);
assert(rc == XDS_OK || rc == XDS_ERR_NO_MEM);
if (rc != XDS_OK)
return rc;
@@ -73,11 +73,11 @@
{
if (xds->we_own_buffer)
{
- int rc = xds_set_capacity((void**)&xds->buffer,
- &xds->buffer_capacity,
- xds->buffer_len + 1,
- sizeof(char),
- XDS_INITIAL_BUFFER_CAPACITY);
+ rc = xds_set_capacity((void**)&xds->buffer,
+ &xds->buffer_capacity,
+ xds->buffer_len + 1,
+ sizeof(char),
+ XDS_INITIAL_BUFFER_CAPACITY);
assert(rc == XDS_OK || rc == XDS_ERR_NO_MEM);
if (rc != XDS_OK)
return rc;
|