summaryrefslogtreecommitdiffstats
path: root/src/server/helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/helper.h')
-rw-r--r--src/server/helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/helper.h b/src/server/helper.h
index 2fa67a5..78a1c41 100644
--- a/src/server/helper.h
+++ b/src/server/helper.h
@@ -19,12 +19,12 @@ void blockNoncriticalSignals();
static inline bool isSameAddress(const dnbd3_host_t * const a, const dnbd3_host_t * const b)
{
- return (a->type == b->type) && (0 == memcmp( a->addr, b->addr, (a->type == AF_INET ? 4 : 16) ));
+ return (a->type == b->type) && (0 == memcmp( a->addr, b->addr, (a->type == HOST_IP4 ? 4 : 16) ));
}
static inline bool isSameAddressPort(const dnbd3_host_t * const a, const dnbd3_host_t * const b)
{
- return (a->type == b->type) && (a->port == b->port) && (0 == memcmp( a->addr, b->addr, (a->type == AF_INET ? 4 : 16) ));
+ return (a->type == b->type) && (a->port == b->port) && (0 == memcmp( a->addr, b->addr, (a->type == HOST_IP4 ? 4 : 16) ));
}
/**