]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(gethostname): Remove decl.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Nov 2004 21:40:12 +0000 (21:40 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Nov 2004 21:40:12 +0000 (21:40 +0000)
(scan_entries): Use IS_USER_PROCESS instead of by-hand code.
* src/uptime.c (print_uptime): Use IS_USER_PROCESS and
UT_TYPE_BOOT_TIME instead of by-hand code.

src/pinky.c

index 6912972fc3b2c5b9e6952d86213059554eeaa974..8aa1d42d911fd79e1c095c77112dbcb9fe0f5e46 100644 (file)
@@ -43,7 +43,6 @@
 # define S_IWGRP 020
 #endif
 
-int gethostname ();
 char *ttyname ();
 
 /* The name this program was run with. */
@@ -458,11 +457,7 @@ scan_entries (size_t n, const STRUCT_UTMP *utmp_buf,
 
   while (n--)
     {
-      if (UT_USER (utmp_buf)[0]
-#ifdef USER_PROCESS
-         && utmp_buf->ut_type == USER_PROCESS
-#endif
-       )
+      if (IS_USER_PROCESS (utmp_buf))
        {
          if (argc_names)
            {