From 408c977f7be09db3b8aa98224989aec731eb0b5a Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 23 Jul 2025 19:15:24 +0200 Subject: lib: Swap len and data in the buffer_t 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 Signed-off-by: Sander Vrijders --- src/irmd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irmd/main.c') diff --git a/src/irmd/main.c b/src/irmd/main.c index 3a1a7225..e0be8a01 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -920,7 +920,7 @@ static int flow_join(struct flow_info * flow, struct ipcp_info ipcp; struct layer_info layer; buffer_t hash; - buffer_t pbuf = {NULL, 0}; /* nothing to piggyback */ + buffer_t pbuf = {0, NULL}; /* nothing to piggyback */ int err; log_info("Allocating flow for %d to %s.", flow->n_pid, dst); -- cgit v1.2.3