change vector_prepend() to take size_t len instead of ssize_t len argument.

Michael
This commit is contained in:
Michael Adam 2009-08-04 14:28:08 +02:00
parent 67628dcc63
commit a34276feee
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ vector_append (vector_t vector, void *data, size_t len)
} }
int int
vector_prepend (vector_t vector, void *data, ssize_t len) vector_prepend (vector_t vector, void *data, size_t len)
{ {
return vector_insert (vector, data, len, INSERT_PREPEND); return vector_insert (vector, data, len, INSERT_PREPEND);
} }

View File

@ -50,7 +50,7 @@ extern "C"
* 0 upon successful insert. * 0 upon successful insert.
*/ */
extern int vector_append (vector_t vector, void *data, size_t len); extern int vector_append (vector_t vector, void *data, size_t len);
extern int vector_prepend (vector_t vector, void *data, ssize_t len); extern int vector_prepend (vector_t vector, void *data, size_t len);
/* /*
* A pointer to the data at position "pos" (zero based) is returned and the * A pointer to the data at position "pos" (zero based) is returned and the