diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-15 19:38:09 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-16 21:15:08 +0100 |
commit | fe80f7b35fc168e0d1bb142a52073c6f0e1e9ef8 (patch) | |
tree | 3973294c8465adab8f74d9f004a4dbae638f6b97 /src/cmark.c | |
parent | 6403a37913828f69de52ebabf33499ced848641d (diff) |
Cast void pointers explicitly
Needed for C++ compatibility.
Diffstat (limited to 'src/cmark.c')
-rw-r--r-- | src/cmark.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmark.c b/src/cmark.c index 96b3080..ac0c230 100644 --- a/src/cmark.c +++ b/src/cmark.c @@ -76,7 +76,7 @@ void cmark_free_inlines(cmark_node_inl* e) inline cmark_node_inl *cmark_make_link(cmark_node_inl *label, unsigned char *url, unsigned char *title) { - cmark_node_inl* e = calloc(1, sizeof(*e)); + cmark_node_inl* e = (cmark_node_inl *)calloc(1, sizeof(*e)); if(e != NULL) { e->tag = CMARK_INL_LINK; e->content.linkable.label = label; @@ -110,7 +110,7 @@ inline cmark_node_inl* cmark_make_autolink(cmark_node_inl* label, chunk url, int inline cmark_node_inl* cmark_make_inlines(int t, cmark_node_inl* contents) { - cmark_node_inl * e = calloc(1, sizeof(*e)); + cmark_node_inl * e = (cmark_node_inl *)calloc(1, sizeof(*e)); if(e != NULL) { e->tag = t; e->content.inlines = contents; @@ -122,7 +122,7 @@ inline cmark_node_inl* cmark_make_inlines(int t, cmark_node_inl* contents) // Create an inline with a literal string value. inline cmark_node_inl* cmark_make_literal(int t, cmark_chunk s) { - cmark_node_inl * e = calloc(1, sizeof(*e)); + cmark_node_inl * e = (cmark_node_inl *)calloc(1, sizeof(*e)); if(e != NULL) { e->tag = t; e->content.literal = s; @@ -134,7 +134,7 @@ inline cmark_node_inl* cmark_make_literal(int t, cmark_chunk s) // Create an inline with no value. inline cmark_node_inl* cmark_make_simple(int t) { - cmark_node_inl* e = calloc(1, sizeof(*e)); + cmark_node_inl* e = (cmark_node_inl *)calloc(1, sizeof(*e)); if(e != NULL) { e->tag = t; e->next = NULL; |