[nginx] Stream: style.
Maxim Dounin
mdounin at mdounin.ru
Wed May 14 03:07:45 UTC 2025
details: http://freenginx.org/hg/nginx/rev/85a9b0bb5b3c
branches:
changeset: 9354:85a9b0bb5b3c
user: Maxim Dounin <mdounin at mdounin.ru>
date: Wed May 14 01:15:13 2025 +0300
description:
Stream: style.
Unless actually required for some reason, line continuation should be
in column 79, not 80.
diffstat:
src/stream/ngx_stream.h | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (32 lines):
diff --git a/src/stream/ngx_stream.h b/src/stream/ngx_stream.h
--- a/src/stream/ngx_stream.h
+++ b/src/stream/ngx_stream.h
@@ -264,20 +264,20 @@ typedef struct {
#define ngx_stream_delete_ctx(s, module) s->ctx[module.ctx_index] = NULL;
-#define ngx_stream_get_module_main_conf(s, module) \
+#define ngx_stream_get_module_main_conf(s, module) \
(s)->main_conf[module.ctx_index]
-#define ngx_stream_get_module_srv_conf(s, module) \
+#define ngx_stream_get_module_srv_conf(s, module) \
(s)->srv_conf[module.ctx_index]
-#define ngx_stream_conf_get_module_main_conf(cf, module) \
+#define ngx_stream_conf_get_module_main_conf(cf, module) \
((ngx_stream_conf_ctx_t *) cf->ctx)->main_conf[module.ctx_index]
-#define ngx_stream_conf_get_module_srv_conf(cf, module) \
+#define ngx_stream_conf_get_module_srv_conf(cf, module) \
((ngx_stream_conf_ctx_t *) cf->ctx)->srv_conf[module.ctx_index]
-#define ngx_stream_cycle_get_module_main_conf(cycle, module) \
- (cycle->conf_ctx[ngx_stream_module.index] ? \
- ((ngx_stream_conf_ctx_t *) cycle->conf_ctx[ngx_stream_module.index]) \
- ->main_conf[module.ctx_index]: \
+#define ngx_stream_cycle_get_module_main_conf(cycle, module) \
+ (cycle->conf_ctx[ngx_stream_module.index] ? \
+ ((ngx_stream_conf_ctx_t *) cycle->conf_ctx[ngx_stream_module.index]) \
+ ->main_conf[module.ctx_index]: \
NULL)
More information about the nginx-devel
mailing list