[nginx] Open file cache: style.
Maxim Dounin
mdounin at mdounin.ru
Wed Jun 4 23:37:03 UTC 2025
details: http://freenginx.org/hg/nginx/rev/a5f8fb848439
branches:
changeset: 9364:a5f8fb848439
user: Maxim Dounin <mdounin at mdounin.ru>
date: Thu Jun 05 02:17:12 2025 +0300
description:
Open file cache: style.
diffstat:
src/core/ngx_open_file_cache.c | 2 +-
src/core/ngx_open_file_cache.h | 6 ++----
2 files changed, 3 insertions(+), 5 deletions(-)
diffs (35 lines):
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c
--- a/src/core/ngx_open_file_cache.c
+++ b/src/core/ngx_open_file_cache.c
@@ -974,7 +974,7 @@ ngx_open_file_add_event(ngx_open_file_ca
file->use_event = 0;
file->event = ngx_calloc(sizeof(ngx_event_t), log);
- if (file->event== NULL) {
+ if (file->event == NULL) {
return;
}
diff --git a/src/core/ngx_open_file_cache.h b/src/core/ngx_open_file_cache.h
--- a/src/core/ngx_open_file_cache.h
+++ b/src/core/ngx_open_file_cache.h
@@ -53,9 +53,7 @@ typedef struct {
} ngx_open_file_info_t;
-typedef struct ngx_cached_open_file_s ngx_cached_open_file_t;
-
-struct ngx_cached_open_file_s {
+typedef struct {
ngx_rbtree_node_t node;
ngx_queue_t queue;
@@ -87,7 +85,7 @@ struct ngx_cached_open_file_s {
unsigned is_directio:1;
ngx_event_t *event;
-};
+} ngx_cached_open_file_t;
typedef struct {
More information about the nginx-devel
mailing list