summaryrefslogtreecommitdiff
path: root/src/core/network.c
diff options
context:
space:
mode:
authorWill Storey <will@summercat.com>2017-10-09 13:14:34 -0700
committerWill Storey <will@summercat.com>2017-10-09 13:14:34 -0700
commitcb5f3cba1f2b5dbad67bcc107f3fe4a1875cc52d (patch)
tree3e12f4a7e791efe8614a611a50cccacec899a357 /src/core/network.c
parent016fd344362ddcc4b1a0781df9ac2416acc54e69 (diff)
downloadirssi-cb5f3cba1f2b5dbad67bcc107f3fe4a1875cc52d.zip
Delete unused function net_ip_compare()
Diffstat (limited to 'src/core/network.c')
-rw-r--r--src/core/network.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/core/network.c b/src/core/network.c
index 4494dbc6..36e04c7a 100644
--- a/src/core/network.c
+++ b/src/core/network.c
@@ -60,18 +60,6 @@ IPADDR ip4_any = {
#endif
};
-int net_ip_compare(IPADDR *ip1, IPADDR *ip2)
-{
- if (ip1->family != ip2->family)
- return 0;
-
- if (ip1->family == AF_INET6)
- return memcmp(&ip1->ip, &ip2->ip, sizeof(ip1->ip)) == 0;
-
- return memcmp(&ip1->ip, &ip2->ip, 4) == 0;
-}
-
-
static void sin_set_ip(union sockaddr_union *so, const IPADDR *ip)
{
if (ip == NULL) {