aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2012-07-03 13:06:40 +0000
committerRuslan Ermilov <ru@nginx.com>2012-07-03 13:06:40 +0000
commitbbfc96c7034bff4e94cf80538d630d06bd2334ee (patch)
tree8ae56e1495ebdeb6f43345dc66c4493705114c6f
parent2219c566d74aa719dcbefda6a379e5ed9e4a468c (diff)
downloadnginx-bbfc96c7034bff4e94cf80538d630d06bd2334ee.tar.gz
nginx-bbfc96c7034bff4e94cf80538d630d06bd2334ee.zip
Fixed typo in a function name.
-rw-r--r--src/core/ngx_shmtx.c6
-rw-r--r--src/core/ngx_shmtx.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/ngx_shmtx.c b/src/core/ngx_shmtx.c
index 085294a91..6cf7af58a 100644
--- a/src/core/ngx_shmtx.c
+++ b/src/core/ngx_shmtx.c
@@ -44,7 +44,7 @@ ngx_shmtx_create(ngx_shmtx_t *mtx, ngx_shmtx_sh_t *addr, u_char *name)
void
-ngx_shmtx_destory(ngx_shmtx_t *mtx)
+ngx_shmtx_destroy(ngx_shmtx_t *mtx)
{
#if (NGX_HAVE_POSIX_SEM)
@@ -208,7 +208,7 @@ ngx_shmtx_create(ngx_shmtx_t *mtx, ngx_shmtx_sh_t *addr, u_char *name)
return NGX_OK;
}
- ngx_shmtx_destory(mtx);
+ ngx_shmtx_destroy(mtx);
}
mtx->fd = ngx_open_file(name, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN,
@@ -232,7 +232,7 @@ ngx_shmtx_create(ngx_shmtx_t *mtx, ngx_shmtx_sh_t *addr, u_char *name)
void
-ngx_shmtx_destory(ngx_shmtx_t *mtx)
+ngx_shmtx_destroy(ngx_shmtx_t *mtx)
{
if (ngx_close_file(mtx->fd) == NGX_FILE_ERROR) {
ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, ngx_errno,
diff --git a/src/core/ngx_shmtx.h b/src/core/ngx_shmtx.h
index 830b6f5b1..91e11bebb 100644
--- a/src/core/ngx_shmtx.h
+++ b/src/core/ngx_shmtx.h
@@ -39,7 +39,7 @@ typedef struct {
ngx_int_t ngx_shmtx_create(ngx_shmtx_t *mtx, ngx_shmtx_sh_t *addr,
u_char *name);
-void ngx_shmtx_destory(ngx_shmtx_t *mtx);
+void ngx_shmtx_destroy(ngx_shmtx_t *mtx);
ngx_uint_t ngx_shmtx_trylock(ngx_shmtx_t *mtx);
void ngx_shmtx_lock(ngx_shmtx_t *mtx);
void ngx_shmtx_unlock(ngx_shmtx_t *mtx);