From c84e853934cf99a737ef7d3f4ee5d61a1a2a5696 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Dec 2015 17:27:35 +0100 Subject: resolved: fix parameter type of dns_type_is_pseudo() DNS RR types are uint16_t after all, treat them as such. --- src/resolve/dns-type.c | 2 +- src/resolve/dns-type.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resolve/dns-type.c b/src/resolve/dns-type.c index 63b4b36e88..a626ecf01a 100644 --- a/src/resolve/dns-type.c +++ b/src/resolve/dns-type.c @@ -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); } diff --git a/src/resolve/dns-type.h b/src/resolve/dns-type.h index 950af36ee3..2868025ad7 100644 --- a/src/resolve/dns-type.h +++ b/src/resolve/dns-type.h @@ -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. -- cgit v1.2.3-54-g00ecf