diff options
author | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2001-07-19 11:58:33 +0000 |
---|---|---|
committer | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2001-07-19 11:58:33 +0000 |
commit | 02641ababbbf3c4986c786b038c7d7ded547fa51 (patch) | |
tree | e2a32ca38e6aa2f3b1fccbb744d1b2890e60f6e0 /tables | |
parent | 39ca33791cce4976d76303a0b0b04938fc8d17eb (diff) | |
download | libapr-02641ababbbf3c4986c786b038c7d7ded547fa51.tar.gz |
Some formatting changes, no code change.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61969 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tables')
-rw-r--r-- | tables/apr_tables.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tables/apr_tables.c b/tables/apr_tables.c index cbd6f5daf..4cf971ab0 100644 --- a/tables/apr_tables.c +++ b/tables/apr_tables.c @@ -96,7 +96,7 @@ static void make_array_core(apr_array_header_t *res, apr_pool_t *p, * 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(apr_array_header_t *) apr_array_make(apr_pool_t *p, 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; |