From cfa7fe890b09693ed503da7516977402cbbe13ed Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Thu, 29 Aug 2013 07:46:46 +0100 Subject: last, utmpdump, agetty, wall, write: avoid compatibility hacks In include/bits/utmp.h the ut_user and ut_time macros are marked with comment they are backwards compatibility hacks. It is probably best to avoid use of these macros where ever possible. Signed-off-by: Sami Kerola --- term-utils/wall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'term-utils/wall.c') diff --git a/term-utils/wall.c b/term-utils/wall.c index fbea7e42f..20a2891f2 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -155,7 +155,7 @@ int main(int argc, char **argv) iov.iov_base = mbuf; iov.iov_len = mbufsize; while((utmpptr = getutent())) { - if (!utmpptr->ut_name[0]) + if (!utmpptr->ut_user[0]) continue; #ifdef USER_PROCESS if (utmpptr->ut_type != USER_PROCESS) -- cgit v1.2.3-55-g7522