diff options
Diffstat (limited to 'tests/test_basic.c')
| -rw-r--r-- | tests/test_basic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_basic.c b/tests/test_basic.c index b4ed7788dce4..5859c0ba6eb7 100644 --- a/tests/test_basic.c +++ b/tests/test_basic.c @@ -90,7 +90,7 @@ main (int argc, char **argv) inlen = strlen (inbuf); test_in = malloc (inlen); memcpy (test_in, inbuf, inlen); - ucl_parser_add_chunk (parser, test_in, inlen); + ucl_parser_add_chunk (parser, (const unsigned char *)test_in, inlen); } fclose (in); @@ -126,7 +126,7 @@ main (int argc, char **argv) ucl_parser_free (parser); ucl_object_unref (obj); parser2 = ucl_parser_new (UCL_PARSER_KEY_LOWERCASE); - ucl_parser_add_string (parser2, emitted, 0); + ucl_parser_add_string (parser2, (const char *)emitted, 0); if (ucl_parser_get_error(parser2) != NULL) { fprintf (out, "Error occurred: %s\n", ucl_parser_get_error(parser2)); |
