chiark / gitweb /
in-addr-util: remove family_to_string() API
[elogind.git] / src / shared / in-addr-util.c
index ffbaa74316724f8758095e50e20d8c58a735cd6b..ff008bd26fb9ab591810b05db5637f54d070841f 100644 (file)
@@ -231,15 +231,3 @@ int in_addr_from_string_auto(const char *s, int *family, union in_addr_union *re
 
         return -EINVAL;
 }
-
-static const char* const family_table[] = {
-        [AF_UNSPEC] = "unspec",
-        [AF_UNIX] = "unix",
-        [AF_INET] = "inet",
-        [AF_INET6] = "inet6",
-        [AF_NETLINK] = "netlink",
-        [AF_PACKET] = "packet",
-        [AF_BLUETOOTH] = "bluetooth",
-        [AF_NFC] = "nfc",
-};
-DEFINE_STRING_TABLE_LOOKUP(family, int);