2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

114. [cleanup] <isc/sockaddr.h> does not need <isc/buffer.h> or <isc/list.h>.

This commit is contained in:
David Lawrence
2000-04-27 23:29:28 +00:00
parent 1d2f2d7c9a
commit 2cc1d2536d
3 changed files with 8 additions and 9 deletions

View File

@@ -23,6 +23,7 @@
#include <stdio.h>
#include <isc/assertions.h>
#include <isc/buffer.h>
#include <isc/error.h>
#include <isc/netaddr.h>
#include <isc/region.h>
@@ -30,8 +31,7 @@
#include <isc/types.h>
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)