summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-stub.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-10-09 14:19:06 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-10-09 21:22:23 -0400
commit424e490b94fca44d180122b3f2ded22bfc6d31ea (patch)
tree48f2e060f934573c93097a4caf67a247bf9a0f35 /src/resolve/resolved-dns-stub.h
parent084f5805572c2c4797b87e402c31d82fc9c0623d (diff)
resolved: simplify error handling in manager_dns_stub_{udp,tcp}_fd()
Make sure an error is always printed… When systemd-resolved is started in a user namespace without private network, it would fail on setsockopt, but the error wouldn't be particularly informative: "Failed to start manager: permission denied."
Diffstat (limited to 'src/resolve/resolved-dns-stub.h')
-rw-r--r--src/resolve/resolved-dns-stub.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/resolve/resolved-dns-stub.h b/src/resolve/resolved-dns-stub.h
index fce4d25ede..12b86f6753 100644
--- a/src/resolve/resolved-dns-stub.h
+++ b/src/resolve/resolved-dns-stub.h
@@ -24,8 +24,5 @@
/* 127.0.0.53 in native endian */
#define INADDR_DNS_STUB ((in_addr_t) 0x7f000035U)
-int manager_dns_stub_udp_fd(Manager *m);
-int manager_dns_stub_tcp_fd(Manager *m);
-
void manager_dns_stub_stop(Manager *m);
int manager_dns_stub_start(Manager *m);