summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 14:28:08 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:47:27 +0200
commita34276feee15941ad2cb753bde95ac4f96260d10 (patch)
tree730e91985072574634706296accc4719c2eb130b
parent67628dcc63733a841156bbd8f79ab1fcfaa62037 (diff)
downloadtinyproxy-a34276feee15941ad2cb753bde95ac4f96260d10.tar.gz
tinyproxy-a34276feee15941ad2cb753bde95ac4f96260d10.zip
change vector_prepend() to take size_t len instead of ssize_t len argument.
Michael
-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 b372647..5d33cbd 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -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);
}
diff --git a/src/vector.h b/src/vector.h
index 1dbf638..0a096f0 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -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