From 67628dcc63733a841156bbd8f79ab1fcfaa62037 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 4 Aug 2009 14:27:28 +0200 Subject: change vector_append() to take size_t len instead of ssize_t len argument Michael --- src/vector.c | 2 +- src/vector.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vector.c b/src/vector.c index d664ddb..b372647 100644 --- a/src/vector.c +++ b/src/vector.c @@ -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); } diff --git a/src/vector.h b/src/vector.h index dde4add..1dbf638 100644 --- a/src/vector.h +++ b/src/vector.h @@ -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); /* -- cgit v1.2.3