From: Arne Schwabe Date: Tue, 15 Sep 2015 09:23:38 +0000 (+0200) Subject: Remove unused function h_errno_msg X-Git-Tag: v2.4_alpha1~257 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d11134feee33689904ded0c6a0108e865d17d7e;p=thirdparty%2Fopenvpn.git Remove unused function h_errno_msg Acked-by: Gert Doering 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 --- diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c index 7f889b1fe..20edf41a7 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