vector: remove implicit cast warning in vector_insert() by adding explicit cast
Michael
This commit is contained in:
parent
5b81dec879
commit
f0a46fd71c
@ -121,7 +121,7 @@ vector_insert (vector_t vector, void *data, size_t len, int pos)
|
|||||||
(pos != INSERT_PREPEND && pos != INSERT_APPEND))
|
(pos != INSERT_PREPEND && pos != INSERT_APPEND))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
entry = safemalloc (sizeof (struct vectorentry_s));
|
entry = (struct vectorentry_s *)safemalloc (sizeof (struct vectorentry_s));
|
||||||
if (!entry)
|
if (!entry)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user