From 6b0750a000900d2ff775e6792797d64174e509c1 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 18 Jan 2015 15:43:51 +0100 Subject: sdsIncrLen: change incr argument to size_t --- src/sds.c | 2 +- src/sds.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf