diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-18 21:34:54 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-18 21:34:54 +0100 |
commit | 1d39b50d8889155de11df40f7e89bec09e0c4681 (patch) | |
tree | f1a4b000b52d12c2d98b9f946f4c9fbe5f5d81a7 /api_test | |
parent | fc46123f0a527a364f9a0fb1e7b8b7448fd84b89 (diff) |
Fix api_test warnings
Diffstat (limited to 'api_test')
-rw-r--r-- | api_test/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api_test/main.c b/api_test/main.c index 051d32b..1ff606b 100644 --- a/api_test/main.c +++ b/api_test/main.c @@ -2,7 +2,8 @@ #include <stdlib.h> #include <string.h> -#include <cmark.h> +#include "cmark.h" +#include "node.h" #include "harness.h" @@ -34,7 +35,7 @@ create_tree(test_batch_runner *runner) OK(runner, cmark_node_append_child(emph, str2), "append3"); INT_EQ(runner, cmark_node_check(doc), 0, "append3 consistent"); - char *html = cmark_render_html(doc); + char *html = (char *)cmark_render_html(doc); STR_EQ(runner, html, "<p>Hello, <em>world</em>!</p>\n", "render_html"); free(html); |