diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-08-10 16:06:52 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-08-22 14:50:56 +0200 |
commit | 77db8772bd3f6f2bbad697dcf46861ce310f5b95 (patch) | |
tree | 1b72825f6b4544f256459b0c16a3bfb721083e30 | |
parent | 3aeab55ee17ca527e4597bc8397c0434c3f8b34e (diff) | |
download | glibc-77db8772bd3f6f2bbad697dcf46861ce310f5b95.tar.gz |
__inet6_scopeid_pton: Remove attribute_hidden, internal_function
The hidden attribute was overridden by libc_hidden_proto on GNU/Linux.
It is incorrect because the function is used from nscd.
internal_function is not supposed to be used across DSO boundaries,
so this commit removes it (again, due to the use in nscd).
(cherry picked from commit f87cc2bfba9b844da48a63441c6099342b1551c7)
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | inet/inet6_scopeid_pton.c | 2 | ||||
-rw-r--r-- | inet/net-internal.h | 3 |
3 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2017-08-10 Florian Weimer <fweimer@redhat.com> + + * inet/net-internal.h (__inet6_scopeid_pton): Remove + attribute_hidden, internal_function. + * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove + internal_function. + 2017-08-21 Florian Weimer <fweimer@redhat.com> [BZ #21972] diff --git a/inet/inet6_scopeid_pton.c b/inet/inet6_scopeid_pton.c index e09b1cb34d..cc8803fa10 100644 --- a/inet/inet6_scopeid_pton.c +++ b/inet/inet6_scopeid_pton.c @@ -28,7 +28,7 @@ /* Parse SOURCE as a scope ID for ADDRESS. Return 0 on success and -1 on error. */ -internal_function int +int __inet6_scopeid_pton (const struct in6_addr *address, const char *scope, uint32_t *result) { diff --git a/inet/net-internal.h b/inet/net-internal.h index 2b2632c7ba..b2135893e8 100644 --- a/inet/net-internal.h +++ b/inet/net-internal.h @@ -25,8 +25,7 @@ #include <sys/time.h> int __inet6_scopeid_pton (const struct in6_addr *address, - const char *scope, uint32_t *result) - internal_function attribute_hidden; + const char *scope, uint32_t *result); libc_hidden_proto (__inet6_scopeid_pton) |