summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ouroboros/utils.h b/include/ouroboros/utils.h
index 9c48b039..e1f0ca0e 100644
--- a/include/ouroboros/utils.h
+++ b/include/ouroboros/utils.h
@@ -33,11 +33,11 @@
#define ABS(a) ((a) > 0 ? (a) : -(a))
#define clrbuf(buf) do { memset(&(buf), 0, sizeof(buf)); } while (0);
#define freebuf(buf) do { free((buf).data); clrbuf(buf); } while (0);
-#define BUF_INIT { NULL, 0 }
+#define BUF_INIT { 0, NULL }
typedef struct {
- uint8_t * data;
size_t len;
+ uint8_t * data;
} buffer_t;
/*