aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 0179e60..b0e596e 100644
--- a/src/sds.c
+++ b/src/sds.c
@@ -521,7 +521,7 @@ cleanup:
}
/* Free the result returned by sdssplitlen(), or do nothing if 'tokens' is NULL. */
-void sdsfreesplitres(sds *tokens, int count) {
+void sdsfreesplitres(sds *tokens, size_t count) {
if (!tokens) { return; }
while(count--) {
sdsfree(tokens[count]);
diff --git a/src/sds.h b/src/sds.h
index 13c94de..3354096 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -84,7 +84,7 @@ void sdsupdatelen(sds s);
void sdsclear(sds s);
int sdscmp(const sds s1, const sds s2);
sds *sdssplitlen(const char *s, size_t len, const char *sep, size_t seplen, size_t *count);
-void sdsfreesplitres(sds *tokens, int count);
+void sdsfreesplitres(sds *tokens, size_t count);
void sdstolower(sds s);
void sdstoupper(sds s);
sds sdsfromlonglong(long long value);