change vector_prepend() to take size_t len instead of ssize_t len argument.
Michael
This commit is contained in:
parent
67628dcc63
commit
a34276feee
@ -169,7 +169,7 @@ vector_append (vector_t vector, void *data, size_t len)
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ extern "C"
|
||||
* 0 upon successful insert.
|
||||
*/
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user