[njs] Fixed njs_string_create() prototype to reflect underlying types.

Dmitry Volyntsev xeioex at nginx.com
Mon Feb 12 12:52:10 UTC 2018


details:   http://hg.nginx.org/njs/rev/feb725292e21
branches:  
changeset: 444:feb725292e21
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Mon Feb 12 15:15:52 2018 +0300
description:
Fixed njs_string_create() prototype to reflect underlying types.

diffstat:

 njs/njs_string.c |  4 ++--
 njs/njscript.h   |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 703cc218b93c -r feb725292e21 njs/njs_string.c
--- a/njs/njs_string.c	Mon Feb 12 14:57:24 2018 +0300
+++ b/njs/njs_string.c	Mon Feb 12 15:15:52 2018 +0300
@@ -120,8 +120,8 @@ static njs_ret_t njs_string_decode(njs_v
 
 
 njs_ret_t
-njs_string_create(njs_vm_t *vm, njs_value_t *value, u_char *start, size_t size,
-    size_t length)
+njs_string_create(njs_vm_t *vm, njs_value_t *value, u_char *start,
+    uint32_t size, uint32_t length)
 {
     u_char        *dst, *src;
     njs_string_t  *string;
diff -r 703cc218b93c -r feb725292e21 njs/njscript.h
--- a/njs/njscript.h	Mon Feb 12 14:57:24 2018 +0300
+++ b/njs/njscript.h	Mon Feb 12 15:15:52 2018 +0300
@@ -119,7 +119,7 @@ NXT_EXPORT njs_value_t *njs_vm_retval(nj
 NXT_EXPORT u_char * njs_string_alloc(njs_vm_t *vm, njs_value_t *value,
     uint32_t size, uint32_t length);
 NXT_EXPORT njs_ret_t njs_string_create(njs_vm_t *vm, njs_value_t *value,
-    u_char *start, size_t size, size_t length);
+    u_char *start, uint32_t size, uint32_t length);
 
 NXT_EXPORT nxt_int_t njs_value_string_copy(njs_vm_t *vm, nxt_str_t *retval,
     njs_value_t *value, uintptr_t *next);


More information about the nginx-devel mailing list