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;