From f0a46fd71cf5cd9d1943ca6613230771d687769f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 4 Aug 2009 23:52:56 +0200 Subject: vector: remove implicit cast warning in vector_insert() by adding explicit cast Michael --- src/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3