summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-11-30 21:40:12 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-11-30 21:40:12 +0000
commit76d1b4a434ac7a84a0cb5b552205abe8ea8e41f7 (patch)
tree02828e40274739858c87496ed6a05ad3aca00942 /src
parentfa60e4cb6f9069e5ae9541a99e1995611eceba28 (diff)
downloadcoreutils-76d1b4a434ac7a84a0cb5b552205abe8ea8e41f7.tar.xz
(gethostname): Remove decl.
(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.
Diffstat (limited to 'src')
-rw-r--r--src/pinky.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pinky.c b/src/pinky.c
index 6912972fc..8aa1d42d9 100644
--- a/src/pinky.c
+++ b/src/pinky.c
@@ -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)
{