From 9d24a269ddee4ac786119ab3385c97d7e27d0117 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 17 Jan 2015 23:54:42 +0100 Subject: Reindent with tabs. All source code should be indented with tabs and aligned with spaces. When talking about line length a tab equals 4 spaces. --- src/sds.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/sds.h') diff --git a/src/sds.h b/src/sds.h index 4c7ae5f..2d98969 100644 --- a/src/sds.h +++ b/src/sds.h @@ -36,23 +36,23 @@ typedef char *sds; struct sdshdr { - int len; - int free; - char buf[]; + int len; + int free; + char buf[]; }; static inline struct sdshdr * sdsheader(const sds s) { - return s - (sizeof (struct sdshdr)); + return s - (sizeof (struct sdshdr)); } static inline size_t sdslen(const sds s) { - struct sdshdr *sh = sdsheader(s); - return sh->len; + struct sdshdr *sh = sdsheader(s); + return sh->len; } static inline size_t sdsavail(const sds s) { - struct sdshdr *sh = sdsheader(s); - return sh->free; + struct sdshdr *sh = sdsheader(s); + return sh->free; } sds sdsnewlen(const void *init, size_t initlen); -- cgit v1.2.3-54-g00ecf