]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
__inet6_scopeid_pton: Remove attribute_hidden, internal_function
authorFlorian Weimer <fweimer@redhat.com>
Thu, 10 Aug 2017 14:06:52 +0000 (16:06 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 10 Aug 2017 14:06:52 +0000 (16:06 +0200)
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).

ChangeLog
inet/inet6_scopeid_pton.c
inet/net-internal.h

index 01d04fb25d143ea907587690b8393795a33da7ac..6648ce16763eff371346712955c5ac4e4a5d3b0c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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-10  Florian Weimer  <fweimer@redhat.com>
 
        * malloc/malloc.c (get_max_fast): Reimplement as an inline
index e09b1cb34dcc9424cf091d32b0811108fe34d2d9..cc8803fa108f7bcb834606efbfbdfdeda84625d9 100644 (file)
@@ -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)
 {
index 2b2632c7ba845c7b3ea6d735f7e7451728f5c5b2..b2135893e8a3fccbd0a6e0df809ee56a5401ecc4 100644 (file)
@@ -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)