From 117085faf4be738b862b6551ed433c4f530e9ae0 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Wed, 17 Nov 2021 21:46:02 -0500 Subject: Fix compiler errors/warnings --- src/clog.c | 6 +++--- 1 file 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"); -- cgit v1.2.3