From 6b43446a33b8cbba73ae6ab08a5602f9046734b6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 31 Jan 2000 08:38:07 +0000 Subject: Use UT_USER in place of hard-coded `->ut_name' here, too. --- src/who.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/who.c') diff --git a/src/who.c b/src/who.c index 6ab23d284..db175a623 100644 --- a/src/who.c +++ b/src/who.c @@ -1,5 +1,5 @@ /* GNU's who. - 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 @@ -153,7 +153,7 @@ print_entry (const STRUCT_UTMP *utmp_ent) last_change = 0; } - printf ("%-8.*s", (int) sizeof (utmp_ent->ut_name), utmp_ent->ut_name); + printf ("%-8.*s", (int) sizeof (UT_USER (utmp_ent)), UT_USER (utmp_ent)); if (include_mesg) printf (" %c ", mesg); printf (" %-8.*s", (int) sizeof (utmp_ent->ut_line), utmp_ent->ut_line); @@ -219,7 +219,7 @@ list_entries_who (int n, const STRUCT_UTMP *utmp_buf) entries = 0; while (n--) { - if (utmp_buf->ut_name[0] + if (UT_USER (utmp_buf)[0] #ifdef USER_PROCESS && utmp_buf->ut_type == USER_PROCESS #endif @@ -261,7 +261,7 @@ scan_entries (int n, const STRUCT_UTMP *utmp_buf) while (n--) { - if (utmp_buf->ut_name[0] + if (UT_USER (utmp_buf)[0] #ifdef USER_PROCESS && utmp_buf->ut_type == USER_PROCESS #endif @@ -299,7 +299,7 @@ search_entries (int n, const STRUCT_UTMP *utmp_buf, const char *line) { while (n--) { - if (utmp_buf->ut_name[0] + if (UT_USER (utmp_buf)[0] #ifdef USER_PROCESS && utmp_buf->ut_type == USER_PROCESS #endif -- cgit v1.2.3-54-g00ecf