summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-query.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-20 21:30:59 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-25 15:59:40 +0100
commitd07b43a18e2234e8abebc1cd4d93bfd78ab62001 (patch)
tree0d0237fb1141a60659e181023a2629e4ffbc3fce /src/resolve/resolved-dns-query.c
parentedbcc1fdd94355c5cf22263ba2c1cfa4ec2eb010 (diff)
resolved: move dns_type_to_af() to dns-type.c
Diffstat (limited to 'src/resolve/resolved-dns-query.c')
-rw-r--r--src/resolve/resolved-dns-query.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/resolve/resolved-dns-query.c b/src/resolve/resolved-dns-query.c
index 165a52fcd0..47f1924702 100644
--- a/src/resolve/resolved-dns-query.c
+++ b/src/resolve/resolved-dns-query.c
@@ -595,23 +595,6 @@ static DnsProtocol SYNTHESIZE_PROTOCOL(uint64_t flags) {
return DNS_PROTOCOL_DNS;
}
-static int dns_type_to_af(uint16_t t) {
- switch (t) {
-
- case DNS_TYPE_A:
- return AF_INET;
-
- case DNS_TYPE_AAAA:
- return AF_INET6;
-
- case DNS_TYPE_ANY:
- return AF_UNSPEC;
-
- default:
- return -EINVAL;
- }
-}
-
static int synthesize_localhost_rr(DnsQuery *q, const DnsResourceKey *key, DnsAnswer **answer) {
int r;