summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 23:52:56 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:52:56 +0200
commitf0a46fd71cf5cd9d1943ca6613230771d687769f (patch)
tree405509e4bd7053d97cb24a74dd3a4aedaadba3b9
parent5b81dec8796a635bae6223ec0f0b4a90748bdcfd (diff)
downloadtinyproxy-f0a46fd71cf5cd9d1943ca6613230771d687769f.tar.gz
tinyproxy-f0a46fd71cf5cd9d1943ca6613230771d687769f.zip
vector: remove implicit cast warning in vector_insert() by adding explicit cast
Michael
Diffstat (limited to '')
-rw-r--r--src/vector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vector.c b/src/vector.c
index a930261..944c38b 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -121,7 +121,7 @@ vector_insert (vector_t vector, void *data, size_t len, int pos)
(pos != INSERT_PREPEND && pos != INSERT_APPEND))
return -EINVAL;
- entry = safemalloc (sizeof (struct vectorentry_s));
+ entry = (struct vectorentry_s *)safemalloc (sizeof (struct vectorentry_s));
if (!entry)
return -ENOMEM;