OSDN Git Service

getutid is not used internally, removing hidden_proto
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 4 Apr 2010 23:31:27 +0000 (01:31 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 4 Apr 2010 23:31:27 +0000 (01:31 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/utmp.h
libc/misc/utmp/utent.c

index 182f45e..27454a6 100644 (file)
@@ -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.  */
index 336c023..254040f 100644 (file)
@@ -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) {