summaryrefslogtreecommitdiffstats
path: root/src/nss-resolve
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-02-17 17:29:43 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-02-17 19:48:07 +0100
commit94876904bbd7596c58e0a4a60efc0c1e74eb8e98 (patch)
tree64c982842362623d9ec64a816d3094faa076b1f7 /src/nss-resolve
parentnetwork: assign values after all checks are passed (diff)
downloadsystemd-94876904bbd7596c58e0a4a60efc0c1e74eb8e98.tar.xz
systemd-94876904bbd7596c58e0a4a60efc0c1e74eb8e98.zip
tree-wide: use in_addr_is_set() or friends
Diffstat (limited to 'src/nss-resolve')
-rw-r--r--src/nss-resolve/nss-resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nss-resolve/nss-resolve.c b/src/nss-resolve/nss-resolve.c
index 5fcd39ee0a..dfc0977c84 100644
--- a/src/nss-resolve/nss-resolve.c
+++ b/src/nss-resolve/nss-resolve.c
@@ -77,7 +77,7 @@ static uint32_t ifindex_to_scopeid(int family, const void *a, int ifindex) {
assert(sizeof(in6) == FAMILY_ADDRESS_SIZE(AF_INET6));
memcpy(&in6, a, sizeof(struct in6_addr));
- return IN6_IS_ADDR_LINKLOCAL(&in6) ? ifindex : 0;
+ return in6_addr_is_link_local(&in6) ? ifindex : 0;
}
static int json_dispatch_ifindex(const char *name, JsonVariant *variant, JsonDispatchFlags flags, void *userdata) {