summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-04-05 01:31:27 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-04-05 01:31:27 +0200
commitc75712b15a5e0655c15707e1e1340da9d5e2646a (patch)
tree815e590aa66d155a866d2981d34b0cda638e111a
parent2864786ad884369ab5397be864e9f43d32bc2726 (diff)
getutid is not used internally, removing hidden_proto
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--include/utmp.h1
-rw-r--r--libc/misc/utmp/utent.c7
2 files changed, 3 insertions, 5 deletions
diff --git a/include/utmp.h b/include/utmp.h
index 182f45e1c..27454a66a 100644
--- a/include/utmp.h
+++ b/include/utmp.h
@@ -74,7 +74,6 @@ extern void endutent (void) __THROW;
/* Search forward from the current point in the utmp file until the
next entry with a ut_type matching ID->ut_type. */
extern struct utmp *getutid (__const struct utmp *__id) __THROW;
-libc_hidden_proto(getutid)
/* Search forward from the current point in the utmp file until the
next entry with a ut_line matching LINE->ut_line. */
diff --git a/libc/misc/utmp/utent.c b/libc/misc/utmp/utent.c
index 336c0239b..254040fed 100644
--- a/libc/misc/utmp/utent.c
+++ b/libc/misc/utmp/utent.c
@@ -88,7 +88,7 @@ void endutent(void)
struct utmp *getutent(void)
{
- struct utmp *ret = NULL;
+ struct utmp *ret;
__UCLIBC_MUTEX_LOCK(utmplock);
ret = __getutent();
@@ -125,18 +125,17 @@ static struct utmp *__getutid(const struct utmp *utmp_entry)
struct utmp *getutid(const struct utmp *utmp_entry)
{
- struct utmp *ret = NULL;
+ struct utmp *ret;
__UCLIBC_MUTEX_LOCK(utmplock);
ret = __getutid(utmp_entry);
__UCLIBC_MUTEX_UNLOCK(utmplock);
return ret;
}
-libc_hidden_def(getutid)
struct utmp *getutline(const struct utmp *utmp_entry)
{
- struct utmp *lutmp = NULL;
+ struct utmp *lutmp;
__UCLIBC_MUTEX_LOCK(utmplock);
while ((lutmp = __getutent()) != NULL) {