summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2015-09-15 11:23:38 +0200
committerGert Doering <gert@greenie.muc.de>2015-09-15 12:03:25 +0200
commit1d11134feee33689904ded0c6a0108e865d17d7e (patch)
tree61ea2290c5aa913eaae969d23656b2756dec9795
parentd8a8656f1a8721f56a08439afe24916beadfef55 (diff)
downloadopenvpn-1d11134feee33689904ded0c6a0108e865d17d7e.zip
openvpn-1d11134feee33689904ded0c6a0108e865d17d7e.tar.gz
openvpn-1d11134feee33689904ded0c6a0108e865d17d7e.tar.xz
Remove unused function h_errno_msg
Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1442309019-7586-8-git-send-email-arne@rfc2549.org> URL: http://article.gmane.org/gmane.network.openvpn.devel/10108 Signed-off-by: Gert Doering <gert@greenie.muc.de>
-rw-r--r--src/openvpn/socket.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c
index 7f889b1..20edf41 100644
--- a/src/openvpn/socket.c
+++ b/src/openvpn/socket.c
@@ -71,23 +71,6 @@ sf2gaf(const unsigned int getaddr_flags,
* Functions related to the translation of DNS names to IP addresses.
*/
-static const char*
-h_errno_msg(int h_errno_err)
-{
- switch (h_errno_err)
- {
- case HOST_NOT_FOUND:
- return "[HOST_NOT_FOUND] The specified host is unknown.";
- case NO_DATA:
- return "[NO_DATA] The requested name is valid but does not have an IP address.";
- case NO_RECOVERY:
- return "[NO_RECOVERY] A non-recoverable name server error occurred.";
- case TRY_AGAIN:
- return "[TRY_AGAIN] A temporary error occurred on an authoritative name server.";
- }
- return "[unknown h_errno value]";
-}
-
/*
* Translate IP addr or hostname to in_addr_t.
* If resolve error, try again for