aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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[];
};