]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: allow DNS_PACKET_DATA() argument to be const
authorLennart Poettering <lennart@poettering.net>
Fri, 6 Nov 2020 16:30:32 +0000 (17:30 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Feb 2021 15:27:40 +0000 (16:27 +0100)
src/resolve/resolved-dns-packet.h

index 815999ecc28b74c382360013d3ed83d4c74ea0b3..9fe278264bc547aecc4a79bea8a39ce567741ae2 100644 (file)
@@ -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;