change vector_append() to take size_t len instead of ssize_t len argument
Michael
This commit is contained in:
parent
590f99ef2d
commit
67628dcc63
@ -163,7 +163,7 @@ vector_insert (vector_t vector, void *data, size_t len, int pos)
|
||||
* arguments.
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ extern "C"
|
||||
* Returns: negative on error
|
||||
* 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);
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user