summaryrefslogtreecommitdiff
path: root/src/references.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-15 19:38:09 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-16 21:15:08 +0100
commitfe80f7b35fc168e0d1bb142a52073c6f0e1e9ef8 (patch)
tree3973294c8465adab8f74d9f004a4dbae638f6b97 /src/references.c
parent6403a37913828f69de52ebabf33499ced848641d (diff)
Cast void pointers explicitly
Needed for C++ compatibility.
Diffstat (limited to 'src/references.c')
-rw-r--r--src/references.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/references.c b/src/references.c
index cb750c6..fb0ac17 100644
--- a/src/references.c
+++ b/src/references.c
@@ -82,7 +82,7 @@ extern void reference_create(reference_map *map, chunk *label, chunk *url, chunk
if (reflabel == NULL)
return;
- ref = calloc(1, sizeof(*ref));
+ ref = (reference *)calloc(1, sizeof(*ref));
if(ref != NULL) {
ref->label = reflabel;
ref->hash = refhash(ref->label);
@@ -149,5 +149,5 @@ void reference_map_free(reference_map *map)
reference_map *reference_map_new(void)
{
- return calloc(1, sizeof(reference_map));
+ return (reference_map *)calloc(1, sizeof(reference_map));
}