1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00

resolved: fix parameter type of dns_type_is_pseudo()

DNS RR types are uint16_t after all, treat them as such.
This commit is contained in:
Lennart Poettering 2015-12-09 17:27:35 +01:00
parent e4b0e86225
commit c84e853934
2 changed files with 2 additions and 2 deletions

View 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);
}

View 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.