Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 58126 invoked by uid 500); 19 Jul 2001 11:59:58 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 58115 invoked from network); 19 Jul 2001 11:59:58 -0000 Date: 19 Jul 2001 11:58:33 -0000 Message-ID: <20010719115833.64534.qmail@icarus.apache.org> From: dreid@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/tables apr_tables.c X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N dreid 01/07/19 04:58:33 Modified: tables apr_tables.c Log: Some formatting changes, no code change. Revision Changes Path 1.16 +7 -7 apr/tables/apr_tables.c Index: apr_tables.c =================================================================== RCS file: /home/cvs/apr/tables/apr_tables.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- apr_tables.c 2001/07/07 07:49:16 1.15 +++ apr_tables.c 2001/07/19 11:58:33 1.16 @@ -96,7 +96,7 @@ * array of zero elts. */ if (nelts < 1) { - nelts = 1; + nelts = 1; } res->elts = apr_pcalloc(p, nelts * elt_size); @@ -120,14 +120,14 @@ APR_DECLARE(void *) apr_array_push(apr_array_header_t *arr) { if (arr->nelts == arr->nalloc) { - int new_size = (arr->nalloc <= 0) ? 1 : arr->nalloc * 2; - char *new_data; + int new_size = (arr->nalloc <= 0) ? 1 : arr->nalloc * 2; + char *new_data; - new_data = apr_pcalloc(arr->pool, arr->elt_size * new_size); + new_data = apr_pcalloc(arr->pool, arr->elt_size * new_size); - memcpy(new_data, arr->elts, arr->nalloc * arr->elt_size); - arr->elts = new_data; - arr->nalloc = new_size; + memcpy(new_data, arr->elts, arr->nalloc * arr->elt_size); + arr->elts = new_data; + arr->nalloc = new_size; } ++arr->nelts;