Remove unused hostapd_ip_diff()
authorJouni Malinen <j@w1.fi>
Sun, 25 May 2014 19:34:01 +0000 (22:34 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 26 May 2014 14:21:44 +0000 (17:21 +0300)
There are no users of this function.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/ip_addr.c
src/utils/ip_addr.h

index 3647c76..92a3590 100644 (file)
@@ -33,30 +33,6 @@ const char * hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf,
 }
 
 
-int hostapd_ip_diff(struct hostapd_ip_addr *a, struct hostapd_ip_addr *b)
-{
-       if (a == NULL && b == NULL)
-               return 0;
-       if (a == NULL || b == NULL)
-               return 1;
-
-       switch (a->af) {
-       case AF_INET:
-               if (a->u.v4.s_addr != b->u.v4.s_addr)
-                       return 1;
-               break;
-#ifdef CONFIG_IPV6
-       case AF_INET6:
-               if (os_memcmp(&a->u.v6, &b->u.v6, sizeof(a->u.v6)) != 0)
-                       return 1;
-               break;
-#endif /* CONFIG_IPV6 */
-       }
-
-       return 0;
-}
-
-
 int hostapd_parse_ip_addr(const char *txt, struct hostapd_ip_addr *addr)
 {
 #ifndef CONFIG_NATIVE_WINDOWS
index 79ac20c..0670411 100644 (file)
@@ -22,7 +22,6 @@ struct hostapd_ip_addr {
 
 const char * hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf,
                            size_t buflen);
-int hostapd_ip_diff(struct hostapd_ip_addr *a, struct hostapd_ip_addr *b);
 int hostapd_parse_ip_addr(const char *txt, struct hostapd_ip_addr *addr);
 
 #endif /* IP_ADDR_H */