summaryrefslogtreecommitdiff
path: root/src/uptime.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-02-05 08:48:55 +0000
committerJim Meyering <jim@meyering.net>2000-02-05 08:48:55 +0000
commit6cf7855da7f02eade54ab29b43dccce3b027ea7a (patch)
tree28d8c045e6c6fe40a662473a9ffcf897da4e658c /src/uptime.c
parent5d716e440a73d859cd06e7bbf31cd3c5cbbdd5af (diff)
downloadcoreutils-6cf7855da7f02eade54ab29b43dccce3b027ea7a.tar.xz
Use UT_USER in place of hard-coded `->ut_name' here, too.
Diffstat (limited to 'src/uptime.c')
-rw-r--r--src/uptime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uptime.c b/src/uptime.c
index 9d2912840..5a39ba649 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -1,5 +1,5 @@
/* GNU's uptime.
- Copyright (C) 1992-1999 Free Software Foundation, Inc.
+ Copyright (C) 1992-2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -79,7 +79,7 @@ print_uptime (int n, const STRUCT_UTMP *this)
ones, also in the process possibly gleaning boottime. */
while (n--)
{
- if (this->ut_name[0]
+ if (UT_USER (this) [0]
#ifdef USER_PROCESS
&& this->ut_type == USER_PROCESS
#endif