浏览代码

parse_string: Improve const correctnes of pointers

Max Bruckner 8 年之前
父节点
当前提交
efb5e1bc93
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cJSON.c

+ 1 - 1
cJSON.c

@@ -543,7 +543,7 @@ fail:
 }
 
 /* Parse the input text into an unescaped cinput, and populate item. */
-static const unsigned char *parse_string(cJSON *item, const unsigned char *input, const unsigned char **error_pointer)
+static const unsigned char *parse_string(cJSON * const item, const unsigned char * const input, const unsigned char ** const error_pointer)
 {
     const unsigned char *input_pointer = input + 1;
     const unsigned char *input_end = input + 1;