summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-07 09:14:38 +0200
committerMichael Adam <obnox@samba.org>2009-08-07 09:16:07 +0200
commitab9e8a59e294c80ee9d4c718a351cf85dcccdbde (patch)
tree57f781d0bb94d9882078e56be2f67ade54692d12
parent181b03d729e59720af4a65470a8f9f1ceb293976 (diff)
downloadtinyproxy-ab9e8a59e294c80ee9d4c718a351cf85dcccdbde.tar.gz
tinyproxy-ab9e8a59e294c80ee9d4c718a351cf85dcccdbde.zip
hashmap: fix three implicit cast warnings.
Michael
Diffstat (limited to '')
-rw-r--r--src/hashmap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hashmap.c b/src/hashmap.c
index 2c8327c..4b16941 100644
--- a/src/hashmap.c
+++ b/src/hashmap.c
@@ -106,12 +106,13 @@ hashmap_create (unsigned int nbuckets)
if (nbuckets == 0)
return NULL;
- ptr = safecalloc (1, sizeof (struct hashmap_s));
+ ptr = (struct hashmap_s *)safecalloc (1, sizeof (struct hashmap_s));
if (!ptr)
return NULL;
ptr->size = nbuckets;
- ptr->buckets = safecalloc (nbuckets, sizeof (struct hashbucket_s));
+ ptr->buckets = (struct hashbucket_s *)safecalloc (nbuckets,
+ sizeof (struct hashbucket_s));
if (!ptr->buckets)
{
safefree (ptr);
@@ -231,7 +232,7 @@ hashmap_insert (hashmap_t map, const char *key, const void *data, size_t len)
}
memcpy (data_copy, data, len);
- ptr = safemalloc (sizeof (struct hashentry_s));
+ ptr = (struct hashentry_s *)safemalloc (sizeof (struct hashentry_s));
if (!ptr)
{
safefree (key_copy);