aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/clog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clog.c b/src/clog.c
index 92e1dd2..6ef273f 100644
--- a/src/clog.c
+++ b/src/clog.c
@@ -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");