summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-18 02:36:10 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-18 12:38:32 +0200
commit9d485985338a46b8cb1acdf1af6c1eb2e88acfee (patch)
tree5a2922478d95ef8f2bd8b4c2d7f975776d4ed249 /src/shared
parentca4e095ab9e970cb8fa472ae69ea1f0648041722 (diff)
shared: rename PROTO_ADDRESS_SIZE() to FAMILY_ADDRESS_SIZE()
We mostly use "family" to refer to AF_INET, AF_INET6, etc, let's use this terminology here, too
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/in-addr-util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/in-addr-util.h b/src/shared/in-addr-util.h
index 108f1f3ace..aae1f16608 100644
--- a/src/shared/in-addr-util.h
+++ b/src/shared/in-addr-util.h
@@ -39,7 +39,7 @@ int in_addr_to_string(unsigned family, const union in_addr_union *u, char **ret)
int in_addr_from_string(unsigned family, const char *s, union in_addr_union *ret);
int in_addr_from_string_auto(const char *s, unsigned *family, union in_addr_union *ret);
-static inline size_t PROTO_ADDRESS_SIZE(int proto) {
- assert(proto == AF_INET || proto == AF_INET6);
- return proto == AF_INET6 ? 16 : 4;
+static inline size_t FAMILY_ADDRESS_SIZE(int family) {
+ assert(family == AF_INET || family == AF_INET6);
+ return family == AF_INET6 ? 16 : 4;
}