[njs] Style.

Dmitry Volyntsev xeioex at nginx.com
Wed Feb 20 18:05:17 UTC 2019


details:   https://hg.nginx.org/njs/rev/7bb252625b94
branches:  
changeset: 791:7bb252625b94
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed Feb 20 21:04:22 2019 +0300
description:
Style.

diffstat:

 njs/njs_error.c |  2 +-
 njs/njs_error.h |  2 +-
 njs/njs_json.c  |  8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diffs (63 lines):

diff -r 5764fb29b4c0 -r 7bb252625b94 njs/njs_error.c
--- a/njs/njs_error.c	Wed Feb 20 21:04:19 2019 +0300
+++ b/njs/njs_error.c	Wed Feb 20 21:04:22 2019 +0300
@@ -39,7 +39,7 @@ njs_error_new(njs_vm_t *vm, njs_value_t 
 
 void
 njs_error_fmt_new(njs_vm_t *vm, njs_value_t *dst, njs_value_type_t type,
-    const char* fmt, ...)
+    const char *fmt, ...)
 {
     va_list  args;
     u_char   buf[NXT_MAX_ERROR_STR], *p;
diff -r 5764fb29b4c0 -r 7bb252625b94 njs/njs_error.h
--- a/njs/njs_error.h	Wed Feb 20 21:04:19 2019 +0300
+++ b/njs/njs_error.h	Wed Feb 20 21:04:22 2019 +0300
@@ -35,7 +35,7 @@
 void njs_error_new(njs_vm_t *vm, njs_value_t *dst, njs_value_type_t type,
     u_char *start, size_t size);
 void njs_error_fmt_new(njs_vm_t *vm, njs_value_t *dst, njs_value_type_t type,
-    const char* fmt, ...);
+    const char *fmt, ...);
 
 void njs_memory_error(njs_vm_t *vm);
 void njs_memory_error_set(njs_vm_t *vm, njs_value_t *value);
diff -r 5764fb29b4c0 -r 7bb252625b94 njs/njs_json.c
--- a/njs/njs_json.c	Wed Feb 20 21:04:19 2019 +0300
+++ b/njs/njs_json.c	Wed Feb 20 21:04:22 2019 +0300
@@ -115,7 +115,7 @@ static njs_json_state_t *njs_json_push_p
     njs_json_parse_t *parse, njs_value_t *value);
 static njs_json_state_t *njs_json_pop_parse_state(njs_json_parse_t *parse);
 static void njs_json_parse_exception(njs_json_parse_ctx_t *ctx,
-    const char* msg, const u_char *pos);
+    const char *msg, const u_char *pos);
 
 static njs_ret_t njs_json_stringify_continuation(njs_vm_t *vm,
     njs_value_t *args, nxt_uint_t nargs, njs_index_t unused);
@@ -152,7 +152,7 @@ static njs_value_t *njs_json_wrap_value(
 #define njs_json_buf_node_room(n) (size_t) ((n)->end - (n)->pos)
 
 static nxt_int_t njs_json_buf_append(njs_json_stringify_t *stringify,
-    const char* msg, size_t len);
+    const char *msg, size_t len);
 static u_char *njs_json_buf_reserve(njs_json_stringify_t *stringify,
     size_t size);
 static nxt_int_t njs_json_buf_pullup(njs_json_stringify_t *stringify,
@@ -1126,7 +1126,7 @@ njs_json_pop_parse_state(njs_json_parse_
 
 
 static void
-njs_json_parse_exception(njs_json_parse_ctx_t *ctx, const char* msg,
+njs_json_parse_exception(njs_json_parse_ctx_t *ctx, const char *msg,
     const u_char *pos)
 {
     ssize_t  length;
@@ -1927,7 +1927,7 @@ njs_json_wrap_value(njs_vm_t *vm, njs_va
 
 
 static nxt_int_t
-njs_json_buf_append(njs_json_stringify_t *stringify, const char* msg,
+njs_json_buf_append(njs_json_stringify_t *stringify, const char *msg,
     size_t len)
 {
     u_char  *p;


More information about the nginx-devel mailing list