]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: drop meaningless bitfield specifier
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 20 Mar 2021 17:33:36 +0000 (02:33 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 23 Mar 2021 12:30:23 +0000 (21:30 +0900)
This also rearrange the members to remove holes in the struct.

src/resolve/resolved-dns-cache.c

index c019dc38c9dd41cce12713158cd7b4f7c5498b98..b74141e641558263711bc1e644b720455ad8378e 100644 (file)
@@ -36,14 +36,13 @@ enum DnsCacheItemType {
 
 struct DnsCacheItem {
         DnsCacheItemType type;
+        int rcode;
         DnsResourceKey *key;     /* The key for this item, i.e. the lookup key */
         DnsResourceRecord *rr;   /* The RR for this item, i.e. the lookup value for positive queries */
         DnsAnswer *answer;       /* The full validated answer, if this is an RRset acquired via a "primary" lookup */
         DnsPacket *full_packet;  /* The full packet this information was acquired with */
-        int rcode;
 
         usec_t until;
-        bool shared_owner:1;
         uint64_t query_flags;    /* SD_RESOLVED_AUTHENTICATED and/or SD_RESOLVED_CONFIDENTIAL */
         DnssecResult dnssec_result;
 
@@ -53,6 +52,8 @@ struct DnsCacheItem {
 
         unsigned prioq_idx;
         LIST_FIELDS(DnsCacheItem, by_key);
+
+        bool shared_owner;
 };
 
 /* Returns true if this is a cache item created as result of an explicit lookup, or created as "side-effect"