diff options
author | Sami Kerola | 2013-08-29 08:46:46 +0200 |
---|---|---|
committer | Sami Kerola | 2013-08-29 19:14:10 +0200 |
commit | cfa7fe890b09693ed503da7516977402cbbe13ed (patch) | |
tree | 209ef3d4676d62c36b59b62a33b06b37c9a5b8bf /term-utils/wall.c | |
parent | last: tell verbally system is still running (diff) | |
download | kernel-qcow2-util-linux-cfa7fe890b09693ed503da7516977402cbbe13ed.tar.gz kernel-qcow2-util-linux-cfa7fe890b09693ed503da7516977402cbbe13ed.tar.xz kernel-qcow2-util-linux-cfa7fe890b09693ed503da7516977402cbbe13ed.zip |
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 <kerolasa@iki.fi>
Diffstat (limited to 'term-utils/wall.c')
-rw-r--r-- | term-utils/wall.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |