mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
print_string: Add more const
This commit is contained in:
parent
1e999352d3
commit
6a746a230a
2
cJSON.c
2
cJSON.c
@ -794,7 +794,7 @@ static unsigned char *print_string_ptr(const unsigned char * const input, printb
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Invoke print_string_ptr (which is useful) on an item. */
|
/* Invoke print_string_ptr (which is useful) on an item. */
|
||||||
static unsigned char *print_string(const cJSON *item, printbuffer *p)
|
static unsigned char *print_string(const cJSON * const item, printbuffer * const p)
|
||||||
{
|
{
|
||||||
return print_string_ptr((unsigned char*)item->valuestring, p);
|
return print_string_ptr((unsigned char*)item->valuestring, p);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user