1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00

* lib/readutmp.c (desirable_utmp_entry): Use "bool" as the

type for a local, and rename it: s/up/user_proc/.
This commit is contained in:
Jim Meyering
2006-10-18 17:51:57 +00:00
parent 442a1c66eb
commit 6b3d5a4784
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -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:
+3 -3
View File
@@ -69,11 +69,11 @@ extract_trimmed_name (const STRUCT_UTMP *ut)
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;