ossp-pkg/xds/unregister.c 1.2 -> 1.3
--- unregister.c 2001/07/08 15:58:13 1.2
+++ unregister.c 2001/07/08 16:01:37 1.3
@@ -33,6 +33,7 @@
int xds_unregister(xds_t* xds, const char* name)
{
size_t pos;
+ int rc;
/* Sanity checks. */
@@ -56,11 +57,11 @@
/* Lower capacity if necessary. */
- int rc = xds_set_capacity((void**)&xds->engines,
- &xds->engines_capacity,
- xds->engines_len,
- sizeof(engine_map_t),
- XDS_INITIAL_ENGINES_CAPACITY);
+ rc = xds_set_capacity((void**)&xds->engines,
+ &xds->engines_capacity,
+ xds->engines_len,
+ sizeof(engine_map_t),
+ XDS_INITIAL_ENGINES_CAPACITY);
assert(rc == XDS_OK || rc == XDS_ERR_NO_MEM);
if (rc != XDS_OK)
return rc;
|
|