vector: remove implicit cast warning in vector_insert() by adding explicit cast

Michael
This commit is contained in:
Michael Adam 2009-08-04 23:52:56 +02:00
parent 5b81dec879
commit f0a46fd71c

View File

@ -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;