]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-json: update comment regarding struct size
authorLuca Boccassi <luca.boccassi@gmail.com>
Fri, 13 Feb 2026 19:32:37 +0000 (19:32 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 13 Feb 2026 19:33:21 +0000 (19:33 +0000)
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

index f263ab674002ba437547f21ff869a1adae6e70dc..d9e6b24b8f1e1d506e7644339a63e639e0e05043 100644 (file)
@@ -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