]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: drop bit-field annotations for fields in Manager
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Jun 2020 11:09:59 +0000 (13:09 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 18 Jun 2020 19:26:20 +0000 (21:26 +0200)
Access to bit fields is less efficient, and since the Manager is a singleton,
a byte or two of space in the structure doesn't matter at all. (And in this
particular case, because of alignment issues, we wouldn't save anything
anyway.)

src/resolve/resolved-manager.h

index 6fa5e734bbb024c06bdd5d4e9d8c0b681bf31db8..f8710b4085787cb3122733e4194ecd023c06930e 100644 (file)
@@ -70,9 +70,9 @@ struct Manager {
         LIST_HEAD(DnsSearchDomain, search_domains);
         unsigned n_search_domains;
 
-        bool need_builtin_fallbacks:1;
+        bool need_builtin_fallbacks;
+        bool read_resolv_conf;
 
-        bool read_resolv_conf:1;
         struct stat resolv_conf_stat;
 
         DnsTrustAnchor trust_anchor;