]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: assert size of exp_mono_root field
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 12 Sep 2023 12:03:50 +0000 (14:03 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 26 Sep 2023 13:02:06 +0000 (15:02 +0200)
ntp_core.c

index 847932b3424e91737c86b0914e82a9279f64ab4c..d67c15229670cebaed24630bd7e88a099ba5acb5 100644 (file)
@@ -373,6 +373,8 @@ do_size_checks(void)
   assert(offsetof(NTP_Packet, originate_ts)    == 24);
   assert(offsetof(NTP_Packet, receive_ts)      == 32);
   assert(offsetof(NTP_Packet, transmit_ts)     == 40);
+
+  assert(sizeof (NTP_EFExpMonoRoot) == 24);
 }
 
 /* ================================================== */