]> git.ipfire.org Git - thirdparty/systemd.git/commit
timesyncd: reorder structs instead of useless bitfields
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Feb 2024 11:20:20 +0000 (12:20 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Feb 2024 09:41:09 +0000 (10:41 +0100)
commitd53017292edcad2dfe94340320fdd91a80f56cd4
tree8a55310bc466d835e5ceed2bdc1f1ecf3cc91866
parent611a6d15cbcc98751326bcfffd82da09f996b55f
timesyncd: reorder structs instead of useless bitfields

Because of alignment, those bitfields were not doing anything useful,
and were causing the generated code to be more complicated. But in this
case, at least potentially there might be a number of copies of those
structs (if we have a bunch of time servers configured), so let's actually
implement the intended space savings by reording the fields to reduce the
size of holes.
src/timesync/timesyncd-manager.h
src/timesync/timesyncd-server.h