summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 14:27:28 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:47:27 +0200
commit67628dcc63733a841156bbd8f79ab1fcfaa62037 (patch)
treed15ff3f3605d1b623e5daacc1e089fb7be85ddb0
parent590f99ef2dbdbc541856c34067d6f7a54ccd1d53 (diff)
downloadtinyproxy-67628dcc63733a841156bbd8f79ab1fcfaa62037.tar.gz
tinyproxy-67628dcc63733a841156bbd8f79ab1fcfaa62037.zip
change vector_append() to take size_t len instead of ssize_t len argument
Michael
Diffstat (limited to '')
-rw-r--r--src/vector.c2
-rw-r--r--src/vector.h2
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);
/*