diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-18 15:43:51 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-19 00:25:40 +0100 |
commit | 6b0750a000900d2ff775e6792797d64174e509c1 (patch) | |
tree | 9fe192d72c0b788bdbfbe96d2254e6f779867866 | |
parent | 459d2cb217e1af053f08d7e30a92b1b6bf61a90a (diff) | |
download | sds-6b0750a000900d2ff775e6792797d64174e509c1.tar.xz |
sdsIncrLen: change incr argument to size_t
-rw-r--r-- | src/sds.c | 2 | ||||
-rw-r--r-- | src/sds.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); @@ -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); |