summaryrefslogtreecommitdiff
path: root/src/nss-resolve/nss-resolve.c
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/nss-resolve/nss-resolve.c
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/nss-resolve/nss-resolve.c')
-rw-r--r--src/nss-resolve/nss-resolve.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nss-resolve/nss-resolve.c b/src/nss-resolve/nss-resolve.c
index 0dbc224b5c..c67f59e179 100644
--- a/src/nss-resolve/nss-resolve.c
+++ b/src/nss-resolve/nss-resolve.c
@@ -207,7 +207,7 @@ enum nss_status _nss_resolve_gethostbyname4_r(
if (!IN_SET(family, AF_INET, AF_INET6))
continue;
- if (sz != PROTO_ADDRESS_SIZE(family)) {
+ if (sz != FAMILY_ADDRESS_SIZE(family)) {
r = -EINVAL;
goto fail;
}
@@ -329,7 +329,7 @@ enum nss_status _nss_resolve_gethostbyname3_r(
if (isempty(canonical))
canonical = name;
- alen = PROTO_ADDRESS_SIZE(af);
+ alen = FAMILY_ADDRESS_SIZE(af);
l = strlen(canonical);
ms = ALIGN(l+1) +
@@ -463,7 +463,7 @@ enum nss_status _nss_resolve_gethostbyaddr2_r(
return NSS_STATUS_UNAVAIL;
}
- if (len != PROTO_ADDRESS_SIZE(af)) {
+ if (len != FAMILY_ADDRESS_SIZE(af)) {
*errnop = EINVAL;
*h_errnop = NO_RECOVERY;
return NSS_STATUS_UNAVAIL;