aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-18 15:43:51 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-19 00:25:40 +0100
commit6b0750a000900d2ff775e6792797d64174e509c1 (patch)
tree9fe192d72c0b788bdbfbe96d2254e6f779867866 /src
parent459d2cb217e1af053f08d7e30a92b1b6bf61a90a (diff)
downloadsds-6b0750a000900d2ff775e6792797d64174e509c1.tar.xz
sdsIncrLen: change incr argument to size_t
Diffstat (limited to 'src')
-rw-r--r--src/sds.c2
-rw-r--r--src/sds.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sds.c b/src/sds.c
index 96a6c4c..e68a401 100644
--- a/src/sds.c
+++ b/src/sds.c
@@ -200,7 +200,7 @@ size_t sdsAllocSize(sds s) {
* ... check for nread <= 0 and handle it ...
* sdsIncrLen(s, nread);
*/
-void sdsIncrLen(sds s, int incr) {
+void sdsIncrLen(sds s, size_t incr) {
struct sdshdr *sh = sdsheader(s);
assert(sh->free >= incr);
diff --git a/src/sds.h b/src/sds.h
index c0fe90e..a46b06b 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -94,7 +94,7 @@ sds sdsjoinsds(sds *argv, int argc, const char *sep, size_t seplen);
/* Low level functions exposed to the user API */
sds sdsMakeRoomFor(sds s, size_t addlen);
-void sdsIncrLen(sds s, int incr);
+void sdsIncrLen(sds s, size_t incr);
sds sdsRemoveFreeSpace(sds s);
size_t sdsAllocSize(sds s);