From: Jim Meyering Date: Sat, 5 Feb 2000 08:48:55 +0000 (+0000) Subject: Use UT_USER in place of hard-coded `->ut_name' here, too. X-Git-Tag: SH-UTILS-2_0f~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6cf7855da7f02eade54ab29b43dccce3b027ea7a;p=thirdparty%2Fcoreutils.git Use UT_USER in place of hard-coded `->ut_name' here, too. --- diff --git a/src/uptime.c b/src/uptime.c index 9d29128404..5a39ba6490 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 diff --git a/src/users.c b/src/users.c index b0df3aaa14..43fe68056b 100644 --- a/src/users.c +++ b/src/users.c @@ -1,5 +1,5 @@ /* GNU's users. - 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 @@ -58,7 +58,7 @@ list_entries_users (int n, const STRUCT_UTMP *this) u = (char **) xmalloc (n * sizeof (u[0])); for (i = 0; i < n; i++) { - if (this->ut_name[0] + if (UT_USER (this) [0] #ifdef USER_PROCESS && this->ut_type == USER_PROCESS #endif