[Git][NTPsec/ntpsec][master] Remove yet more unused ISC code.
Eric S. Raymond
gitlab at mg.gitlab.com
Sun Sep 11 19:34:34 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
aa5369cd by Eric S. Raymond at 2016-09-11T15:33:20-04:00
Remove yet more unused ISC code.
- - - - -
2 changed files:
- libisc/include/isc/net.h
- libisc/net.c
Changes:
=====================================
libisc/include/isc/net.h
=====================================
--- a/libisc/include/isc/net.h
+++ b/libisc/include/isc/net.h
@@ -29,8 +29,6 @@
*
* It declares ntoh[sl]() and hton[sl]().
*
- * It declares inet_aton()
- *
* MP:
*\li No impact.
*
@@ -138,17 +136,6 @@ isc_net_probe_ipv6pktinfo(void);
* \li #ISC_R_UNEXPECTED
*/
-isc_result_t
-isc_net_probeunix(void);
-/*
- * Returns whether UNIX domain sockets are supported.
- */
-
-int
-isc_net_aton(const char *cp, struct in_addr *addr);
-#undef inet_aton
-#define inet_aton isc_net_aton
-
ISC_LANG_ENDDECLS
#endif /* GUARD_ISC_NET_H */
=====================================
libisc/net.c
=====================================
--- a/libisc/net.c
+++ b/libisc/net.c
@@ -36,7 +36,6 @@ static bool once = false;
static isc_result_t ipv4_result = ISC_R_NOTFOUND;
static isc_result_t ipv6_result = ISC_R_NOTFOUND;
-static isc_result_t unix_result = ISC_R_NOTFOUND;
static isc_result_t ipv6only_result = ISC_R_NOTFOUND;
static isc_result_t ipv6pktinfo_result = ISC_R_NOTFOUND;
@@ -153,12 +152,6 @@ isc_net_probeipv6(void) {
return (ipv6_result);
}
-isc_result_t
-isc_net_probeunix(void) {
- initialize();
- return (unix_result);
-}
-
#ifdef ISC_PLATFORM_HAVEIPV6
static void
try_ipv6only(void) {
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/aa5369cd7a7c5e103e0e6c5eedaf9b0081a90bb6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160911/14a69857/attachment.html>
More information about the vc
mailing list