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
|
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);
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user