]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
login: Rework hidden prototypes for __setutent, __utmpname, __endutent
authorFlorian Weimer <fweimer@redhat.com>
Wed, 30 Jun 2021 05:21:13 +0000 (07:21 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 30 Jun 2021 05:28:27 +0000 (07:28 +0200)
Replace attribute_hidden with a regular combination of
libc_hidden_proto and libc_hidden_def.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
include/utmp.h
login/getutent_r.c
login/utmpname.c

index 374184e9b24299609d88ea850af8973dca425a94..e8162bd08db1fbe528c053eb1fca14245b7566ff 100644 (file)
@@ -6,11 +6,14 @@
 /* Now define the internal interfaces.  */
 extern void __updwtmp (const char *__wtmp_file, const struct utmp *__utmp);
 libc_hidden_proto (__updwtmp)
-extern int __utmpname (const char *__file) attribute_hidden;
+extern int __utmpname (const char *__file);
+libc_hidden_proto (__utmpname)
 extern struct utmp *__getutent (void);
 libc_hidden_proto (__getutent)
-extern void __setutent (void) attribute_hidden;
-extern void __endutent (void) attribute_hidden;
+extern void __setutent (void);
+libc_hidden_proto (__setutent)
+extern void __endutent (void);
+libc_hidden_proto (__endutent)
 extern struct utmp *__getutid (const struct utmp *__id);
 libc_hidden_proto (__getutid)
 extern struct utmp *__getutline (const struct utmp *__line);
index 0af48acec8e3ece89297a1dec96fd2e182bc7712..58d3d5fd0c1483d5746418d86b168f0de035782c 100644 (file)
@@ -36,6 +36,7 @@ __setutent (void)
 
   __libc_lock_unlock (__libc_utmp_lock);
 }
+libc_hidden_def (__setutent)
 weak_alias (__setutent, setutent)
 
 
@@ -82,4 +83,5 @@ __endutent (void)
 
   __libc_lock_unlock (__libc_utmp_lock);
 }
+libc_hidden_def (__endutent)
 weak_alias (__endutent, endutent)
index c85c27fe681433196a4f4ef738b5f33a32b51579..a645445e8a592f6da6525b9b3d1d583086ba64ef 100644 (file)
@@ -72,4 +72,5 @@ done:
   __libc_lock_unlock (__libc_utmp_lock);
   return result;
 }
+libc_hidden_def (__utmpname)
 weak_alias (__utmpname, utmpname)