diff --git a/CHANGES b/CHANGES index 9d56048971..f393c97e48 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ + 114. [cleanup] does not need or + . + 113. [func] Utility programs dig and host added. 112. [cleanup] does not need . diff --git a/lib/isc/include/isc/sockaddr.h b/lib/isc/include/isc/sockaddr.h index 84bf4e6506..a104b492bc 100644 --- a/lib/isc/include/isc/sockaddr.h +++ b/lib/isc/include/isc/sockaddr.h @@ -18,14 +18,10 @@ #ifndef ISC_SOCKADDR_H #define ISC_SOCKADDR_H 1 -#include #include -#include #include #include -ISC_LANG_BEGINDECLS - struct isc_sockaddr { union { struct sockaddr sa; @@ -38,6 +34,8 @@ struct isc_sockaddr { typedef ISC_LIST(struct isc_sockaddr) isc_sockaddrlist_t; +ISC_LANG_BEGINDECLS + isc_boolean_t isc_sockaddr_equal(const isc_sockaddr_t *a, const isc_sockaddr_t *b); diff --git a/lib/isc/sockaddr.c b/lib/isc/sockaddr.c index 6365fd7d2a..886caea74f 100644 --- a/lib/isc/sockaddr.c +++ b/lib/isc/sockaddr.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -30,8 +31,7 @@ #include isc_boolean_t -isc_sockaddr_equal(const isc_sockaddr_t *a, const isc_sockaddr_t *b) -{ +isc_sockaddr_equal(const isc_sockaddr_t *a, const isc_sockaddr_t *b) { REQUIRE(a != NULL && b != NULL); if (a->length != b->length) @@ -66,13 +66,11 @@ isc_sockaddr_equal(const isc_sockaddr_t *a, const isc_sockaddr_t *b) return (ISC_TRUE); } - /* * Compare just the addresses (ignore ports) */ isc_boolean_t -isc_sockaddr_eqaddr(const isc_sockaddr_t *a, const isc_sockaddr_t *b) -{ +isc_sockaddr_eqaddr(const isc_sockaddr_t *a, const isc_sockaddr_t *b) { REQUIRE(a != NULL && b != NULL); if (a->length != b->length)