aboutsummaryrefslogtreecommitdiff
path: root/src/clog.c
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2021-11-17 21:46:02 -0500
committerMichael McVady <femtonaut@gmail.com>2021-11-17 21:46:02 -0500
commit117085faf4be738b862b6551ed433c4f530e9ae0 (patch)
tree1fd465b54b2347ba815392acc6b42bbd47640932 /src/clog.c
parent724627420b8aca92fbf4c16a30d4593c25a37f13 (diff)
Fix compiler errors/warnings
Diffstat (limited to 'src/clog.c')
-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");