Mercurial > hg > octave-lojdl > gnulib-hg
changeset 7523:02a028c7f4ba
* lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
type for a local, and rename it: s/up/user_proc/.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Wed, 18 Oct 2006 17:51:57 +0000 |
parents | ad03c5db72f5 |
children | 066fb9a1e386 |
files | ChangeLog lib/readutmp.c |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-18 Jim Meyering <jim@meyering.net> + + * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the + type for a local, and rename it: s/up/user_proc/. + 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua> * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
--- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -69,11 +69,11 @@ static inline bool desirable_utmp_entry (STRUCT_UTMP const *u, int options) { - int up = IS_USER_PROCESS (u); - if ((options & READ_UTMP_USER_PROCESS) && !up) + bool user_proc = IS_USER_PROCESS (u); + if ((options & READ_UTMP_USER_PROCESS) && !user_proc) return false; if ((options & READ_UTMP_CHECK_PIDS) - && up + && user_proc && (UT_PID (u) <= 0 || (kill (UT_PID (u), 0) < 0 && errno == ESRCH))) return false;