kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 5421b7726e3b641ab151c4a33a1e0904e56dff0a
parent 802a78c0b0f53dcaac1604564033682b967aace8
Author: Joris Vink <joris@coders.se>
Date:   Mon, 23 Nov 2020 10:48:04 +0100

kore_json_init() should take a const void for the data.

Diffstat:
include/kore/kore.h | 2+-
src/json.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/kore/kore.h b/include/kore/kore.h @@ -1037,7 +1037,7 @@ void kore_buf_replace_string(struct kore_buf *, int kore_json_parse(struct kore_json *); void kore_json_cleanup(struct kore_json *); void kore_json_item_free(struct kore_json_item *); -void kore_json_init(struct kore_json *, const u_int8_t *, size_t); +void kore_json_init(struct kore_json *, const void *, size_t); void kore_json_item_tobuf(struct kore_json_item *, struct kore_buf *); const char *kore_json_strerror(struct kore_json *); diff --git a/src/json.c b/src/json.c @@ -64,7 +64,7 @@ static const char *json_errtab[] = { }; void -kore_json_init(struct kore_json *json, const u_int8_t *data, size_t len) +kore_json_init(struct kore_json *json, const void *data, size_t len) { memset(json, 0, sizeof(*json));