]> git.kaiwu.me - njs.git/commitdiff
Style.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 14 Feb 2019 14:01:26 +0000 (17:01 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 14 Feb 2019 14:01:26 +0000 (17:01 +0300)
nginx/ngx_http_js_module.c
njs/njs_regexp.c

index 7d43d50f5b8a2ffe27c1a3f9606ff972f75e8e58..b85b1d434109089c2027bcd4fbdc0e5d8b84ddd1 100644 (file)
@@ -1967,7 +1967,7 @@ ngx_http_js_ext_get_parent(njs_vm_t *vm, njs_value_t *value, void *obj,
 
 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;
index e759ba037ad7aaa952a739e8335e1a8a8eb3c0e2..0eb99856d40bb2571bbd9c9176b516d6fd421b5e 100644 (file)
@@ -268,9 +268,8 @@ njs_regexp_pattern_create(njs_vm_t *vm, u_char *start, size_t length,
     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;