diff --git a/src/resolve/resolved-dns-packet.h b/src/resolve/resolved-dns-packet.h index 815999ecc28..9fe278264bc 100644 --- a/src/resolve/resolved-dns-packet.h +++ b/src/resolve/resolved-dns-packet.h @@ -82,7 +82,7 @@ struct DnsPacket { bool canonical_form:1; }; -static inline uint8_t* DNS_PACKET_DATA(DnsPacket *p) { +static inline uint8_t* DNS_PACKET_DATA(const DnsPacket *p) { if (_unlikely_(!p)) return NULL; diff --git a/src/resolve/resolved-manager.h b/src/resolve/resolved-manager.h index 10c2994c2b0..396f72c4bca 100644 --- a/src/resolve/resolved-manager.h +++ b/src/resolve/resolved-manager.h @@ -97,13 +97,12 @@ struct Manager { /* mDNS */ int mdns_ipv4_fd; int mdns_ipv6_fd; + sd_event_source *mdns_ipv4_event_source; + sd_event_source *mdns_ipv6_event_source; /* DNS-SD */ Hashmap *dnssd_services; - sd_event_source *mdns_ipv4_event_source; - sd_event_source *mdns_ipv6_event_source; - /* dbus */ sd_bus *bus;