]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: fix parameter type of dns_type_is_pseudo()
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Dec 2015 16:27:35 +0000 (17:27 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Dec 2015 10:28:01 +0000 (11:28 +0100)
DNS RR types are uint16_t after all, treat them as such.

src/resolve/dns-type.c
src/resolve/dns-type.h

index 63b4b36e88d0b0fae45ef94c41e2ae4f77429d8f..a626ecf01ac7edd74f697c9e97f8cfa664289535 100644 (file)
@@ -45,6 +45,6 @@ int dns_type_from_string(const char *s) {
 }
 
 /* XXX: find an authoritative list of all pseudo types? */
-bool dns_type_is_pseudo(int n) {
+bool dns_type_is_pseudo(uint16_t n) {
         return IN_SET(n, DNS_TYPE_ANY, DNS_TYPE_AXFR, DNS_TYPE_IXFR, DNS_TYPE_OPT);
 }
index 950af36ee30027b91df4d7b61012950d3c83dece..2868025ad713dcbf5fcdfdb0f80e9ec410640b0e 100644 (file)
@@ -25,7 +25,7 @@
 
 const char *dns_type_to_string(int type);
 int dns_type_from_string(const char *s);
-bool dns_type_is_pseudo(int n);
+bool dns_type_is_pseudo(uint16_t n);
 
 /* DNS record types, taken from
  * http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml.