mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-08 09:39:24 +02:00
(list_entries_users): Use IS_USER_PROCESS
instead of by-hand code.
This commit is contained in:
+1
-5
@@ -54,11 +54,7 @@ list_entries_users (size_t n, const STRUCT_UTMP *this)
|
||||
|
||||
while (n--)
|
||||
{
|
||||
if (UT_USER (this) [0]
|
||||
#ifdef USER_PROCESS
|
||||
&& this->ut_type == USER_PROCESS
|
||||
#endif
|
||||
)
|
||||
if (IS_USER_PROCESS (this))
|
||||
{
|
||||
char *trimmed_name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user