From 987f0fb062f02bc4c8591f03c27c5b35ddc08a65 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 13 Feb 2026 19:32:37 +0000 Subject: [PATCH] sd-json: update comment regarding struct size The assert at the bottom was updated when the size changed, but the comment wasn't: assert_cc(sizeof(sd_json_variant) == 40U); Follow-up for 337712e777bff389f53e26d5b378d2ceba7d98a8 --- src/libsystemd/sd-json/sd-json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-json/sd-json.c b/src/libsystemd/sd-json/sd-json.c index f263ab67400..d9e6b24b8f1 100644 --- a/src/libsystemd/sd-json/sd-json.c +++ b/src/libsystemd/sd-json/sd-json.c @@ -56,7 +56,7 @@ typedef struct JsonSource { char name[]; } JsonSource; -/* On x86-64 this whole structure should have a size of 6 * 64 bit = 48 bytes */ +/* On x86-64 this whole structure should have a size of 5 * 64 bit = 40 bytes */ struct sd_json_variant { union { /* We either maintain a reference counter for this variant itself, or we are embedded into an -- 2.47.3