]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
NSS: Remove internal_function function attribute
authorFlorian Weimer <fweimer@redhat.com>
Thu, 31 Aug 2017 13:56:32 +0000 (15:56 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 31 Aug 2017 13:59:06 +0000 (15:59 +0200)
ChangeLog
include/nss.h
nscd/nscd_getgr_r.c
nscd/nscd_gethst_r.c
nscd/nscd_getpw_r.c
nss/nsswitch.c
nss/rewrite_field.c
nss/valid_field.c
nss/valid_list_field.c

index b49e2bdf2daad02a7c3f2d79b39ef3242e88c116..d508605dfd37a30124ba15f49361ffb2b7e244bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2017-08-31  Florian Weimer  <fweimer@redhat.com>
+
+       * include/nss.h (__nss_valid_field, __nss_valid_list_field)
+       (__nss_rewrite_field): Remove internal_function.
+       * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
+       * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
+       * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
+       * nss/nsswitch.c (nss_parse_file, nss_getline)
+       (nss_parse_service_list, nss_new_service): Likewise.
+       * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
+       * nss/valid_field.c (__nss_valid_field): Likewise.
+       * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
+
 2017-08-31  Florian Weimer  <fweimer@redhat.com>
 
        * malloc/arena.c (__malloc_fork_lock_parent)
index 6358a10fd37867cbb90650827eab8913770cf58c..5f29de7f846be882ee56bd068c743ee5b47226dd 100644 (file)
@@ -6,12 +6,10 @@
 #define NSS_INVALID_FIELD_CHARACTERS ":\n"
 extern const char __nss_invalid_field_characters[] attribute_hidden;
 
-_Bool __nss_valid_field (const char *value)
-  attribute_hidden internal_function;
-_Bool __nss_valid_list_field (char **list)
-  attribute_hidden internal_function;
+_Bool __nss_valid_field (const char *value) attribute_hidden;
+_Bool __nss_valid_list_field (char **list)  attribute_hidden;
 const char *__nss_rewrite_field (const char *value, char **to_be_freed)
-  attribute_hidden internal_function;
+  attribute_hidden;
 
 # endif /* !_ISOMAC */
 #endif /* _NSS_H */
index 1f6026101b52b8296683ccd3e4f6daa00bbb275d..1a8e57ad90228b2f9d14f1f9cf95e30f07264f5c 100644 (file)
@@ -40,8 +40,7 @@ int __nss_not_use_nscd_group;
 
 static int nscd_getgr_r (const char *key, size_t keylen, request_type type,
                         struct group *resultbuf, char *buffer,
-                        size_t buflen, struct group **result)
-     internal_function;
+                        size_t buflen, struct group **result);
 
 
 int
@@ -82,7 +81,6 @@ libc_freeres_fn (gr_map_free)
 
 
 static int
-internal_function
 nscd_getgr_r (const char *key, size_t keylen, request_type type,
              struct group *resultbuf, char *buffer, size_t buflen,
              struct group **result)
index e234c7f2f3bee960988ed9cbf8b25dd5f797e687..5ace03635b4ef6bcb8bfca6a9e2a8412e83a7443 100644 (file)
@@ -32,7 +32,7 @@ int __nss_not_use_nscd_hosts;
 static int nscd_gethst_r (const char *key, size_t keylen, request_type type,
                          struct hostent *resultbuf, char *buffer,
                          size_t buflen, struct hostent **result,
-                         int *h_errnop) internal_function;
+                         int *h_errnop);
 
 
 int
@@ -135,7 +135,6 @@ __nscd_get_nl_timestamp (void)
 int __nss_have_localdomain attribute_hidden;
 
 static int
-internal_function
 nscd_gethst_r (const char *key, size_t keylen, request_type type,
               struct hostent *resultbuf, char *buffer, size_t buflen,
               struct hostent **result, int *h_errnop)
index fbece1c99a80d14fde423dd9e7f6194ba2052447..47aaf566d25aac68b551b76eeb1d61c03c04ecfa 100644 (file)
@@ -38,8 +38,7 @@ int __nss_not_use_nscd_passwd;
 
 static int nscd_getpw_r (const char *key, size_t keylen, request_type type,
                         struct passwd *resultbuf, char *buffer,
-                        size_t buflen, struct passwd **result)
-     internal_function;
+                        size_t buflen, struct passwd **result);
 
 int
 __nscd_getpwnam_r (const char *name, struct passwd *resultbuf, char *buffer,
@@ -81,7 +80,6 @@ libc_freeres_fn (pw_map_free)
 
 
 static int
-internal_function
 nscd_getpw_r (const char *key, size_t keylen, request_type type,
              struct passwd *resultbuf, char *buffer, size_t buflen,
              struct passwd **result)
index 834bef6f9c7844a78435d5e3f6f295cc9940f371..8a146b956f8f93caf04f38c67a9d4349619d9724 100644 (file)
 #include <sysdep.h>
 
 /* Prototypes for the local functions.  */
-static name_database *nss_parse_file (const char *fname) internal_function;
-static name_database_entry *nss_getline (char *line) internal_function;
-static service_user *nss_parse_service_list (const char *line)
-     internal_function;
+static name_database *nss_parse_file (const char *fname);
+static name_database_entry *nss_getline (char *line);
+static service_user *nss_parse_service_list (const char *line);
 #if !defined DO_STATIC_NSS || defined SHARED
 static service_library *nss_new_service (name_database *database,
-                                        const char *name) internal_function;
+                                        const char *name);
 #endif
 
 
@@ -532,7 +531,6 @@ libc_hidden_def (__nss_lookup_function)
 
 
 static name_database *
-internal_function
 nss_parse_file (const char *fname)
 {
   FILE *fp;
@@ -608,7 +606,6 @@ nss_parse_file (const char *fname)
        `( <source> ( "[" "!"? (<status> "=" <action> )+ "]" )? )*'
    */
 static service_user *
-internal_function
 nss_parse_service_list (const char *line)
 {
   service_user *result = NULL, **nextp = &result;
@@ -757,7 +754,6 @@ nss_parse_service_list (const char *line)
 }
 
 static name_database_entry *
-internal_function
 nss_getline (char *line)
 {
   const char *name;
@@ -799,7 +795,6 @@ nss_getline (char *line)
 
 #if !defined DO_STATIC_NSS || defined SHARED
 static service_library *
-internal_function
 nss_new_service (name_database *database, const char *name)
 {
   service_library **currentp = &database->library;
index c0ae3d23f2d7b572c575fe4eba3cd8bb792bd608..3c456fe22d7424203a14384b0faab538a89211d7 100644 (file)
@@ -24,7 +24,6 @@
    overwritten with a pointer the caller has to free if the function
    returns successfully.  On failure, return NULL.  */
 const char *
-internal_function
 __nss_rewrite_field (const char *value, char **to_be_freed)
 {
   *to_be_freed = NULL;
index 88c41a81a0ed95220e574b3eee1cd3b10767a9cf..5146b9cce9377da5937e92b36929771e15128595 100644 (file)
@@ -24,7 +24,6 @@ const char __nss_invalid_field_characters[] = NSS_INVALID_FIELD_CHARACTERS;
    does not contain characters not permitted in NSS database
    fields.  */
 _Bool
-internal_function
 __nss_valid_field (const char *value)
 {
   return value == NULL
index 9763c89bcddb1ed08cb939522b1816921b79b49d..1d825192998c63d3fa1fe91a6c726154c8dd4754 100644 (file)
@@ -24,7 +24,6 @@ static const char invalid_characters[] = NSS_INVALID_FIELD_CHARACTERS ",";
 /* Check that all list members match the field syntax requirements and
    do not contain the character ','.  */
 _Bool
-internal_function
 __nss_valid_list_field (char **list)
 {
   if (list == NULL)