summaryrefslogtreecommitdiffstats
path: root/src/fuse
diff options
context:
space:
mode:
Diffstat (limited to 'src/fuse')
-rw-r--r--src/fuse/helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fuse/helper.h b/src/fuse/helper.h
index 8c290cc..9e5d127 100644
--- a/src/fuse/helper.h
+++ b/src/fuse/helper.h
@@ -24,12 +24,12 @@ int connect_to_server(char *server_adress, int port);
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) ));
}
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) ));
}
#endif