Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-09-06 22:45:00 +0400
committerIgor Sysoev <igor@sysoev.ru>2004-09-06 22:45:00 +0400
commitaab4d8c0c4aa068cc7ddcb1c5daee330d9dec47a (patch)
tree30f6fb63eb08c72af5855f0a784df32a64057706 /src/core
parent980a92472cc30271ad7e88eb2dcc43f00e984d4d (diff)
nginx-0.0.10-2004-09-06-22:45:00 import
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ngx_array.h2
-rw-r--r--src/core/ngx_conf_file.c2
-rw-r--r--src/core/ngx_cycle.c2
-rw-r--r--src/core/ngx_list.c2
-rw-r--r--src/core/ngx_list.h4
5 files changed, 6 insertions, 6 deletions
diff --git a/src/core/ngx_array.h b/src/core/ngx_array.h
index 79a86e643..848596cdf 100644
--- a/src/core/ngx_array.h
+++ b/src/core/ngx_array.h
@@ -20,7 +20,7 @@ void ngx_destroy_array(ngx_array_t *a);
void *ngx_push_array(ngx_array_t *a);
-ngx_inline static ngx_int_t ngx_init_array0(ngx_array_t *array, ngx_pool_t *pool,
+ngx_inline static ngx_int_t ngx_array_init(ngx_array_t *array, ngx_pool_t *pool,
ngx_uint_t n, size_t size)
{
if (!(array->elts = ngx_palloc(pool, n * size))) {
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c
index ff236429d..f6ecd4a4a 100644
--- a/src/core/ngx_conf_file.c
+++ b/src/core/ngx_conf_file.c
@@ -600,7 +600,7 @@ ngx_open_file_t *ngx_conf_open_file(ngx_cycle_t *cycle, ngx_str_t *name)
}
}
- if (!(file = ngx_push_list(&cycle->open_files))) {
+ if (!(file = ngx_list_push(&cycle->open_files))) {
return NULL;
}
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
index cc309e333..9e5143ccb 100644
--- a/src/core/ngx_cycle.c
+++ b/src/core/ngx_cycle.c
@@ -81,7 +81,7 @@ ngx_cycle_t *ngx_init_cycle(ngx_cycle_t *old_cycle)
n = 20;
}
- if (ngx_init_list(&cycle->open_files, pool, n, sizeof(ngx_open_file_t))
+ if (ngx_list_init(&cycle->open_files, pool, n, sizeof(ngx_open_file_t))
== NGX_ERROR)
{
ngx_destroy_pool(pool);
diff --git a/src/core/ngx_list.c b/src/core/ngx_list.c
index 10d79575f..885f8f508 100644
--- a/src/core/ngx_list.c
+++ b/src/core/ngx_list.c
@@ -3,7 +3,7 @@
#include <ngx_core.h>
-void *ngx_push_list(ngx_list_t *l)
+void *ngx_list_push(ngx_list_t *l)
{
void *elt;
ngx_list_part_t *last;
diff --git a/src/core/ngx_list.h b/src/core/ngx_list.h
index 757564f02..f43f235e5 100644
--- a/src/core/ngx_list.h
+++ b/src/core/ngx_list.h
@@ -24,7 +24,7 @@ typedef struct {
} ngx_list_t;
-ngx_inline static ngx_int_t ngx_init_list(ngx_list_t *list, ngx_pool_t *pool,
+ngx_inline static ngx_int_t ngx_list_init(ngx_list_t *list, ngx_pool_t *pool,
ngx_uint_t n, size_t size)
{
if (!(list->part.elts = ngx_palloc(pool, n * size))) {
@@ -67,7 +67,7 @@ ngx_inline static ngx_int_t ngx_init_list(ngx_list_t *list, ngx_pool_t *pool,
*/
-void *ngx_push_list(ngx_list_t *list);
+void *ngx_list_push(ngx_list_t *list);
#endif /* _NGX_LIST_H_INCLUDED_ */