summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-18 16:15:12 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-18 16:15:12 +0200
commit46f08bea4b09e2cce4b50e3c082df4a92a22598c (patch)
tree63324753087c1b33cc06b4d200877cd5ce57a6b2 /src/shared
parent0dd25fb9f005d8ab7ac4bc10a609d00569f8c56a (diff)
in-addr-util: remove family_to_string() API
we already have a more complete one with af_to_name(), that is generated from the header files, no need to duplicate this.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/in-addr-util.c12
-rw-r--r--src/shared/in-addr-util.h3
2 files changed, 0 insertions, 15 deletions
diff --git a/src/shared/in-addr-util.c b/src/shared/in-addr-util.c
index ffbaa74316..ff008bd26f 100644
--- a/src/shared/in-addr-util.c
+++ b/src/shared/in-addr-util.c
@@ -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);
diff --git a/src/shared/in-addr-util.h b/src/shared/in-addr-util.h
index d76ea9dc30..98de032d95 100644
--- a/src/shared/in-addr-util.h
+++ b/src/shared/in-addr-util.h
@@ -43,6 +43,3 @@ static inline size_t FAMILY_ADDRESS_SIZE(int family) {
assert(family == AF_INET || family == AF_INET6);
return family == AF_INET6 ? 16 : 4;
}
-
-const char* family_to_string(int i) _const_;
-int family_from_string(const char *s) _pure_;