summaryrefslogtreecommitdiff
path: root/api_test
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-18 21:34:54 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-18 21:34:54 +0100
commit1d39b50d8889155de11df40f7e89bec09e0c4681 (patch)
treef1a4b000b52d12c2d98b9f946f4c9fbe5f5d81a7 /api_test
parentfc46123f0a527a364f9a0fb1e7b8b7448fd84b89 (diff)
Fix api_test warnings
Diffstat (limited to 'api_test')
-rw-r--r--api_test/main.c5
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);