From efb5e1bc93b199a42430797e2d88c60d96c24012 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Thu, 16 Feb 2017 20:00:06 +0100 Subject: [PATCH] parse_string: Improve const correctnes of pointers --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index d6918fa..03cfd7a 100644 --- a/cJSON.c +++ b/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;