change vector_append() to take size_t len instead of ssize_t len argument

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

View File

@ -163,7 +163,7 @@ vector_insert (vector_t vector, void *data, size_t len, int pos)
* arguments. * arguments.
*/ */
int int
vector_append (vector_t vector, void *data, ssize_t len) vector_append (vector_t vector, void *data, size_t len)
{ {
return vector_insert (vector, data, len, INSERT_APPEND); return vector_insert (vector, data, len, INSERT_APPEND);
} }

View File

@ -49,7 +49,7 @@ extern "C"
* Returns: negative on error * Returns: negative on error
* 0 upon successful insert. * 0 upon successful insert.
*/ */
extern int vector_append (vector_t vector, void *data, ssize_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, ssize_t len);
/* /*