summaryrefslogtreecommitdiffhomepage
path: root/src/vector.c
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2004-02-13 21:27:42 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2004-02-13 21:27:42 +0000
commitaee5a6384985746420fda1c07d4231c4272ae715 (patch)
treeec784f7f8aa36ef58566b8fe31c6927e52398089 /src/vector.c
parentbf22966f558ca95222c94706124a3a385f5aa0bf (diff)
Removed unnecessary casts (mostly dealing with memory allocation.) I
should never have added them in the first place. They don't really buy anything, and they can hide bugs.
Diffstat (limited to 'src/vector.c')
-rw-r--r--src/vector.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vector.c b/src/vector.c
index fc3d4e9..3c74d7e 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -1,4 +1,4 @@
-/* $Id: vector.c,v 1.10 2003-07-31 23:38:28 rjkaes Exp $
+/* $Id: vector.c,v 1.11 2004-02-13 21:27:41 rjkaes Exp $
*
* A vector implementation. The vector can be of an arbitrary length, and
* the data for each entry is an lump of data (the size is stored in the
@@ -58,7 +58,7 @@ vector_create(void)
{
vector_t vector;
- vector = (vector_t)safemalloc(sizeof(struct vector_s));
+ vector = safemalloc(sizeof(struct vector_s));
if (!vector)
return NULL;
@@ -118,7 +118,7 @@ vector_insert(vector_t vector, void *data, ssize_t len, int pos)
(pos != INSERT_PREPEND && pos != INSERT_APPEND))
return -EINVAL;
- entry = (struct vectorentry_s*)safemalloc(sizeof(struct vectorentry_s));
+ entry = safemalloc(sizeof(struct vectorentry_s));
if (!entry)
return -ENOMEM;