summaryrefslogtreecommitdiff
path: root/src/lib/du_buff.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-08 08:37:35 +0100
committerDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-08 09:25:16 +0100
commitf94912a3ea1025c689a5336a1fdc807baa8fa36f (patch)
tree48e568772f688582f5bfd9fd664c511f0ed9981a /src/lib/du_buff.c
parentaf8db503f46049fabaa793905f35bf0a2867744b (diff)
downloadouroboros-f94912a3ea1025c689a5336a1fdc807baa8fa36f.tar.gz
ouroboros-f94912a3ea1025c689a5336a1fdc807baa8fa36f.zip
tests: added test for the du_buff structure
tests/du_buff.c: tests the du_buff_t structure by creating different size du_buff_t's and filling it with different size sdu's at different locations in the du_buff_t tests/CMakefile.txt: added du_buff test lib/du_buff.c: fixed unsafe #define adding brackets
Diffstat (limited to 'src/lib/du_buff.c')
-rw-r--r--src/lib/du_buff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/du_buff.c b/src/lib/du_buff.c
index d88d7ac4..bd1a092d 100644
--- a/src/lib/du_buff.c
+++ b/src/lib/du_buff.c
@@ -29,7 +29,7 @@
#define OUROBOROS_PREFIX "du_buff"
#ifndef DU_BUFF_BLOCKSIZE
-#define DU_BUFF_BLOCKSIZE 1 << 16
+#define DU_BUFF_BLOCKSIZE (1 << 16)
#endif
#include "ouroboros/logs.h"