fuzz BUGFIX fix build issues with fuzz regression tests
This fixes multiple fuzz_regression_test issues.
First, if libyang was built with both ENABLE_BUILD_TESTS and
ENABLE_FUZZ_TARGETS, the fuzz harnesses wouldn't build as the test fuzz
corpus was copied into a directory of the same name, so a _fuzz postfix
was added to the fuzz harness executables.
The other fixes fix some build warnings and typos.
diff --git a/tests/fuzz/lyd_parse_mem.c b/tests/fuzz/lyd_parse_mem.c
index cd4be88..e85d84a 100644
--- a/tests/fuzz/lyd_parse_mem.c
+++ b/tests/fuzz/lyd_parse_mem.c
@@ -74,7 +74,7 @@
memcpy(data, buf, len);
data[len] = 0;
- lyd_parse_data_mem(ctx, data, LYD_JSON, 0, LYD_VALIDATE_PRESENT, &tree);
+ lyd_parse_data_mem(ctx, data, LYD_XML, 0, LYD_VALIDATE_PRESENT, &tree);
ly_ctx_destroy(ctx, NULL);
free(data);