forked from mirrors/kore
kore_json_init() should take a const void for the data.
This commit is contained in:
parent
802a78c0b0
commit
5421b7726e
|
@ -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 *);
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue