diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-18 15:38:11 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-19 00:25:40 +0100 |
commit | a3d3b21dbdad912fcca74ba2263d007c764b9ea3 (patch) | |
tree | 42e98f5accdfb84b141457f280aa8eff43a8983e | |
parent | 2bf92c344eb50a72d730eb27aaea208ef5539181 (diff) | |
download | sds-a3d3b21dbdad912fcca74ba2263d007c764b9ea3.tar.xz |
sds.h: Change len and free to size_t
-rw-r--r-- | src/sds.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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[]; }; |