Mercurial > hg > nginx
changeset 4738:512c741fa841
Fixed typo in a function name.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 03 Jul 2012 13:06:40 +0000 |
parents | 9acc1a5a5b9a |
children | 986cc869b09d |
files | src/core/ngx_shmtx.c src/core/ngx_shmtx.h |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_shmtx.c Tue Jul 03 13:05:18 2012 +0000 +++ b/src/core/ngx_shmtx.c Tue Jul 03 13:06:40 2012 +0000 @@ -44,7 +44,7 @@ void -ngx_shmtx_destory(ngx_shmtx_t *mtx) +ngx_shmtx_destroy(ngx_shmtx_t *mtx) { #if (NGX_HAVE_POSIX_SEM) @@ -208,7 +208,7 @@ 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 @@ 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,
--- a/src/core/ngx_shmtx.h Tue Jul 03 13:05:18 2012 +0000 +++ b/src/core/ngx_shmtx.h Tue Jul 03 13:06:40 2012 +0000 @@ -39,7 +39,7 @@ 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);