[njs] Style.
Dmitry Volyntsev
xeioex at nginx.com
Thu Feb 14 14:25:11 UTC 2019
details: https://hg.nginx.org/njs/rev/dde9a253361e
branches:
changeset: 779:dde9a253361e
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Thu Feb 14 17:01:26 2019 +0300
description:
Style.
diffstat:
nginx/ngx_http_js_module.c | 2 +-
njs/njs_regexp.c | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 3852b2044dfd -r dde9a253361e nginx/ngx_http_js_module.c
--- a/nginx/ngx_http_js_module.c Thu Feb 14 15:21:02 2019 +0300
+++ b/nginx/ngx_http_js_module.c Thu Feb 14 17:01:26 2019 +0300
@@ -1967,7 +1967,7 @@ ngx_http_js_ext_get_parent(njs_vm_t *vm,
static njs_ret_t
ngx_http_js_ext_get_reply_body(njs_vm_t *vm, njs_value_t *value, void *obj,
- uintptr_t data)
+ uintptr_t data)
{
size_t len;
u_char *p;
diff -r 3852b2044dfd -r dde9a253361e njs/njs_regexp.c
--- a/njs/njs_regexp.c Thu Feb 14 15:21:02 2019 +0300
+++ b/njs/njs_regexp.c Thu Feb 14 17:01:26 2019 +0300
@@ -268,9 +268,8 @@ njs_regexp_pattern_create(njs_vm_t *vm,
size += ((flags & NJS_REGEXP_IGNORE_CASE) != 0);
size += ((flags & NJS_REGEXP_MULTILINE) != 0);
- pattern = nxt_mp_zalloc(vm->mem_pool,
- sizeof(njs_regexp_pattern_t)
- + 1 + length + size + 1);
+ pattern = nxt_mp_zalloc(vm->mem_pool, sizeof(njs_regexp_pattern_t) + 1
+ + length + size + 1);
if (nxt_slow_path(pattern == NULL)) {
njs_memory_error(vm);
return NULL;
More information about the nginx-devel
mailing list