OSSP CVS Repository

ossp - Check-in [4186]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4186
Date: 2001-Jul-09 19:44:29 (local)
2001-Jul-09 17:44:29 (UTC)
User:simons
Branch:
Comment: Removed two instances where a local definition of "rc" shadowed an earlier one in the routine.
Tickets:
Inspections:
Files:
ossp-pkg/xds/vencode.c      1.3 -> 1.4     10 inserted, 10 deleted

ossp-pkg/xds/vencode.c 1.3 -> 1.4

--- 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;

CVSTrac 2.0.1