From: Luca Boccassi Date: Fri, 13 Feb 2026 19:32:37 +0000 (+0000) Subject: sd-json: update comment regarding struct size X-Git-Tag: v257.11~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d629aa1e9bfb879f4e0c3451e0641155370cfef;p=thirdparty%2Fsystemd.git 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 (cherry picked from commit 987f0fb062f02bc4c8591f03c27c5b35ddc08a65) (cherry picked from commit c2d34aa2e461a6b7fa69bf375414883bbd736f56) (cherry picked from commit 13164a8aa2c7dfe7a9666e93fa44cb56ae92be49) --- diff --git a/src/libsystemd/sd-json/sd-json.c b/src/libsystemd/sd-json/sd-json.c index 8d02e4fc65b..42156fc7440 100644 --- a/src/libsystemd/sd-json/sd-json.c +++ b/src/libsystemd/sd-json/sd-json.c @@ -61,7 +61,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