1
0
mirror of https://github.com/DaveGamble/cJSON synced 2024-12-26 08:32:04 +00:00

parse_string: Improve const correctnes of pointers

This commit is contained in:
Max Bruckner 2017-02-16 20:00:06 +01:00
parent ace5047782
commit efb5e1bc93

View File

@ -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;