aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-18 15:38:11 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-19 00:25:40 +0100
commita3d3b21dbdad912fcca74ba2263d007c764b9ea3 (patch)
tree42e98f5accdfb84b141457f280aa8eff43a8983e
parent2bf92c344eb50a72d730eb27aaea208ef5539181 (diff)
downloadsds-a3d3b21dbdad912fcca74ba2263d007c764b9ea3.tar.xz
sds.h: Change len and free to size_t
-rw-r--r--src/sds.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sds.h b/src/sds.h
index 489e623..86e2a8c 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -31,13 +31,14 @@
#define SDS_MAX_PREALLOC (1024*1024)
#include <stdarg.h>
+#include <stddef.h>
#include <sys/types.h>
typedef char *sds;
struct sdshdr {
- int len;
- int free;
+ size_t len;
+ size_t free;
char buf[];
};