diff options
-rw-r--r-- | src/clog.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -29,7 +29,7 @@ int init(int state) static void process_md_output(const MD_CHAR* html, MD_SIZE size, void *buf) { - kore_buf_append((struct kore_buf *) buf, (void *) html, (size_t) size); + kore_buf_append((struct kore_buf *) buf, (const void *) html, (size_t) size); } static int @@ -38,8 +38,8 @@ render_md(char *in, struct kore_buf *out) static unsigned parser_flags = 0; static unsigned renderer_flags = MD_HTML_FLAG_DEBUG; - ret = md_html(in, (MD_SIZE) strlen(in), process_md_output, (void*) out, - parser_flags, renderer_flags); + int ret = md_html(in, (MD_SIZE) strlen(in), process_md_output, (void*) out, + parser_flags, renderer_flags); if(ret != 0) { fprintf(stderr, "Parsing failed.\n"); |