summaryrefslogtreecommitdiff
path: root/src/irmd/reg/tests/flow_test.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2025-07-23 19:15:24 +0200
committerSander Vrijders <sander@ouroboros.rocks>2025-07-25 16:24:46 +0200
commit408c977f7be09db3b8aa98224989aec731eb0b5a (patch)
treeec8781aae11e7b2ec459f541d36252020c2eff3a /src/irmd/reg/tests/flow_test.c
parent1856a585ae4290e666314ee7907dc8cbbb08fe2d (diff)
downloadouroboros-408c977f7be09db3b8aa98224989aec731eb0b5a.tar.gz
ouroboros-408c977f7be09db3b8aa98224989aec731eb0b5a.zip
lib: Swap len and data in the buffer_tbe
This is how the ProtoBufCBinary data type is defined, so it will allow easier conversion until we get rid of it. But it makes sense, as the size_t will always be aligned. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/reg/tests/flow_test.c')
-rw-r--r--src/irmd/reg/tests/flow_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/reg/tests/flow_test.c b/src/irmd/reg/tests/flow_test.c
index 3e586341..27fd61b0 100644
--- a/src/irmd/reg/tests/flow_test.c
+++ b/src/irmd/reg/tests/flow_test.c
@@ -232,7 +232,7 @@ static int test_flow_data(void)
char * data;
buffer_t buf;
- buffer_t rcv = {NULL, 0};
+ buffer_t rcv = {0, NULL};
TEST_START();