summaryrefslogtreecommitdiff
path: root/src/nss-mymachines/nss-mymachines.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-mymachines/nss-mymachines.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-mymachines/nss-mymachines.c')
-rw-r--r--src/nss-mymachines/nss-mymachines.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c
index eb1d2b450..09c5d05f2 100644
--- a/src/nss-mymachines/nss-mymachines.c
+++ b/src/nss-mymachines/nss-mymachines.c
@@ -173,7 +173,7 @@ enum nss_status _nss_mymachines_gethostbyname4_r(
goto fail;
}
- if (sz != PROTO_ADDRESS_SIZE(family)) {
+ if (sz != FAMILY_ADDRESS_SIZE(family)) {
r = -EINVAL;
goto fail;
}
@@ -281,7 +281,7 @@ enum nss_status _nss_mymachines_gethostbyname3_r(
return NSS_STATUS_NOTFOUND;
}
- alen = PROTO_ADDRESS_SIZE(af);
+ alen = FAMILY_ADDRESS_SIZE(af);
l = strlen(name);
ms = ALIGN(l+1) +