fuzz BUGFIX fix fuzz harness function signature compilation warnings
diff --git a/tests/fuzz/buf_add_char.c b/tests/fuzz/buf_add_char.c
index a8b2a77..33ca222 100644
--- a/tests/fuzz/buf_add_char.c
+++ b/tests/fuzz/buf_add_char.c
@@ -42,7 +42,7 @@
memcpy(data, buf, len);
old_data = data;
- err = buf_add_char(ctx, &data, len, &dest, &dest_len, &used);
+ err = buf_add_char(ctx, (const char **) &data, len, (char **) &dest, &dest_len, &used);
free(old_data);
free(dest);
diff --git a/tests/fuzz/main.c b/tests/fuzz/main.c
index 2776dea..1c0c4d7 100644
--- a/tests/fuzz/main.c
+++ b/tests/fuzz/main.c
@@ -2,6 +2,8 @@
#include <stdint.h>
#include <stdlib.h>
+int LLVMFuzzerTestOneInput(uint8_t const *buf, size_t len);
+
#ifdef __AFL_COMPILER
int main(void) {
diff --git a/tests/fuzz/yang_parse_module.c b/tests/fuzz/yang_parse_module.c
index 595da62..c25a5d2 100644
--- a/tests/fuzz/yang_parse_module.c
+++ b/tests/fuzz/yang_parse_module.c
@@ -42,7 +42,7 @@
}
mod->ctx = ctx;
- yang_parse_module(&context, data, mod);
+ yang_parse_module(&context, (const char *) data, mod);
free(data);
free(mod);