diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-09-28 00:19:18 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-09-28 01:05:18 +0200 |
commit | 4009ddc69225d571772aaea597615a0c032e14ab (patch) | |
tree | 5b82cda9a1e05c472d5f008437117588cbaca6bb /inet/check_pf.c | |
parent | 64a4af28a62e9f305c82bc9649bbe065fffdeb0d (diff) | |
download | glibc-4009ddc69225d571772aaea597615a0c032e14ab.tar glibc-4009ddc69225d571772aaea597615a0c032e14ab.tar.gz glibc-4009ddc69225d571772aaea597615a0c032e14ab.tar.bz2 glibc-4009ddc69225d571772aaea597615a0c032e14ab.zip |
hurd: Fix `getifaddrs' and `freeifaddrs' symbol exposition
from `freeaddrinfo'.
`getifaddrs' and `freeifaddrs' are not in POSIX, they should not be
exposed along `freeaddrinfo' (through `__check_pf') which is POSIX.
* include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
and use libc_hidden_def on them.
* inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
them.
* sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
* inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
instead of getifaddrs and freeifaddrs.
Diffstat (limited to 'inet/check_pf.c')
-rw-r--r-- | inet/check_pf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inet/check_pf.c b/inet/check_pf.c index a56723a7df..84dd1699d5 100644 --- a/inet/check_pf.c +++ b/inet/check_pf.c @@ -32,7 +32,7 @@ __check_pf (bool *seen_ipv4, bool *seen_ipv6, /* Get the interface list via getifaddrs. */ struct ifaddrs *ifa = NULL; - if (getifaddrs (&ifa) != 0) + if (__getifaddrs (&ifa) != 0) { /* We cannot determine what interfaces are available. Be pessimistic. */ @@ -51,7 +51,7 @@ __check_pf (bool *seen_ipv4, bool *seen_ipv6, else if (runp->ifa_addr->sa_family == PF_INET6) *seen_ipv6 = true; - (void) freeifaddrs (ifa); + (void) __freeifaddrs (ifa); } |