diff options
author | Michael McVady <femtonaut@gmail.com> | 2021-11-17 21:46:02 -0500 |
---|---|---|
committer | Michael McVady <femtonaut@gmail.com> | 2021-11-17 21:46:02 -0500 |
commit | 117085faf4be738b862b6551ed433c4f530e9ae0 (patch) | |
tree | 1fd465b54b2347ba815392acc6b42bbd47640932 /src/clog.c | |
parent | 724627420b8aca92fbf4c16a30d4593c25a37f13 (diff) |
Fix compiler errors/warnings
Diffstat (limited to 'src/clog.c')
-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"); |