From 6a746a230af20aad075cd0ebd1ae351baa16bc1f Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Mon, 20 Feb 2017 12:02:56 +0100 Subject: [PATCH] print_string: Add more const --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 963b389..5a9f29b 100644 --- a/cJSON.c +++ b/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. */ -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); }